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

summaryrefslogtreecommitdiffhomepage
path: root/Test/TestMain.cpp
diff options
context:
space:
mode:
authorPhil Nash2010-12-28 14:41:57 +0000
committerPhil Nash2010-12-28 14:41:57 +0000
commit36ff7ba720e1bb301d19747349a06134f62bfe0d (patch)
tree60ce8a7aaef3206cbee1651342343c1495449f1d /Test/TestMain.cpp
parent1b96cec8f270de5e3d0aee1a77c93b0e790bda1d (diff)
downloadcatch3-36ff7ba720e1bb301d19747349a06134f62bfe0d.tar.gz
Fixes to the self test
Diffstat (limited to 'Test/TestMain.cpp')
-rw-r--r--Test/TestMain.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/Test/TestMain.cpp b/Test/TestMain.cpp
index dd7eb367..7d8c1d5c 100644
--- a/Test/TestMain.cpp
+++ b/Test/TestMain.cpp
@@ -26,10 +26,11 @@ int main (int argc, char * const argv[])
std::ostringstream ossSucceeding;
std::ostringstream ossFailing;
- ReporterConfig reporterConfig( ReporterConfig::Include::SuccessfulResults );
- BasicReporter reporter (reporterConfig );
-
- Runner runner( &reporter );
+ RunnerConfig config;
+ ReporterConfig& reporterConfig = config.getReporterConfig();
+ config.setReporter( new BasicReporter(reporterConfig ) );
+ reporterConfig.setIncludeWhat( ReporterConfig::Include::SuccessfulResults );
+ Runner runner( config );
reporterConfig.setStreamBuf( ossSucceeding.rdbuf() );
runner.runMatching( "succeeding/*" );
@@ -61,7 +62,7 @@ int main (int argc, char * const argv[])
if( result == 0 )
{
- const size_t expectedTestCaseCount = 102; // !TBD factor this out
+ const size_t expectedTestCaseCount = 106; // !TBD factor this out
size_t testCaseCount = runner.getSuccessCount() + runner.getFailureCount();
std::cout << "All " << testCaseCount << " tests completed successfully" << std::endl;
if( testCaseCount != expectedTestCaseCount )