diff options
| author | Phil Nash | 2012-08-24 19:01:35 +0100 |
|---|---|---|
| committer | Phil Nash | 2012-08-24 19:01:35 +0100 |
| commit | 95ae50ad3dc8d78ddcb6d921d54a6fdeb60a8416 (patch) | |
| tree | 6a14eef33112e41982e819563e5cdcab603ac1a9 /projects/SelfTest/TestMain.cpp | |
| parent | f82861fb0a38be97ad6944758ae444f1909ffe1a (diff) | |
| download | catch3-95ae50ad3dc8d78ddcb6d921d54a6fdeb60a8416.tar.gz | |
Test for ~ and removed debug print
Diffstat (limited to 'projects/SelfTest/TestMain.cpp')
| -rw-r--r-- | projects/SelfTest/TestMain.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/projects/SelfTest/TestMain.cpp b/projects/SelfTest/TestMain.cpp index 8760646a..ad1f4842 100644 --- a/projects/SelfTest/TestMain.cpp +++ b/projects/SelfTest/TestMain.cpp @@ -137,6 +137,15 @@ TEST_CASE( "selftest/parser/2", "ConfigData" ) { REQUIRE( config.filters[0].shouldInclude( makeTestCase( "alwaysIncluded" ) ) ); } + SECTION( "--test/exclude:2", "Specify one test case exclusion using --test ~" ) { + const char* argv[] = { "test", "--test", "~test1" }; + CHECK_NOTHROW( parseIntoConfig( argv, config ) ); + + REQUIRE( config.filters.size() == 1 ); + REQUIRE( config.filters[0].shouldInclude( makeTestCase( "test1" ) ) == false ); + REQUIRE( config.filters[0].shouldInclude( makeTestCase( "alwaysIncluded" ) ) ); + } + SECTION( "-t/2", "Specify two test cases using -t" ) { const char* argv[] = { "test", "-t", "test1", "test2" }; CHECK_NOTHROW( parseIntoConfig( argv, config ) ); |