mirror of
https://github.com/KeqingMoe/argparse.git
synced 2025-07-04 07:04:39 +00:00
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:
parent
ab0a28c3bf
commit
af6bbc1d47
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user