Skip --version test until it can be made to work

Because program.parse_args( { "test", "--version" }) calls std::exit(0),
the REQUIRE line never runs and this test is less useful.  Because tests
execution stops here, the doctest status report is not output.  If
--version can be made to not exit during this test, then the test could
be restored.

Signed-off-by: Sean Robinson <sean.robinson@scottsdalecc.edu>
This commit is contained in:
Sean Robinson 2021-10-26 12:58:24 -07:00
parent ab0a28c3bf
commit af6bbc1d47

View File

@ -3,7 +3,8 @@
using doctest::test_suite; using doctest::test_suite;
TEST_CASE("Users can print version and exit" * test_suite("version")) { TEST_CASE("Users can print version and exit" * test_suite("version")
* doctest::skip()) {
argparse::ArgumentParser program("cli-test", "1.9.0"); argparse::ArgumentParser program("cli-test", "1.9.0");
program.add_argument("-d", "--dir") program.add_argument("-d", "--dir")
.required(); .required();