diff options
| author | Phil Nash | 2011-02-21 18:48:00 +0000 |
|---|---|---|
| committer | Phil Nash | 2011-02-21 18:48:00 +0000 |
| commit | 65e4111c31b4fd7138c14b65b73508dff12c0792 (patch) | |
| tree | c378eec0bbee59358a431e119fde3df944a3098b /Test/TestMain.cpp | |
| parent | a243a23363cb62e8d404f06189cf95c3d264bf80 (diff) | |
| download | catch3-65e4111c31b4fd7138c14b65b73508dff12c0792.tar.gz | |
Added more focussed meta test for sections and fixed bug in outstanding section detection
Diffstat (limited to 'Test/TestMain.cpp')
| -rw-r--r-- | Test/TestMain.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/Test/TestMain.cpp b/Test/TestMain.cpp index b3d29805..05c5f1c7 100644 --- a/Test/TestMain.cpp +++ b/Test/TestMain.cpp @@ -16,9 +16,7 @@ TEST_CASE( "selftest/main", "Runs all Catch self tests and checks their results" ) { - using namespace Catch; - - EmbeddedRunner runner; + Catch::EmbeddedRunner runner; runner.runMatching( "./succeeding/*" ); INFO( runner.getOutput() ); @@ -30,3 +28,13 @@ TEST_CASE( "selftest/main", "Runs all Catch self tests and checks their results" CHECK( runner.getSuccessCount() == 0 ); CHECK( runner.getFailureCount() == 53 ); } + +TEST_CASE( "meta/Misc/Sections", "looped tests" ) +{ + Catch::EmbeddedRunner runner; + + runner.runMatching( "./succeeding/Misc/Sections/nested2" ); + CHECK( runner.getSuccessCount() == 9 ); + CHECK( runner.getFailureCount() == 2 ); + +} |