Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/Test/TestMain.cpp
diff options
context:
space:
mode:
authorPhil Nash2011-02-21 18:48:00 +0000
committerPhil Nash2011-02-21 18:48:00 +0000
commit65e4111c31b4fd7138c14b65b73508dff12c0792 (patch)
treec378eec0bbee59358a431e119fde3df944a3098b /Test/TestMain.cpp
parenta243a23363cb62e8d404f06189cf95c3d264bf80 (diff)
downloadcatch3-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.cpp14
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 );
+
+}