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

summaryrefslogtreecommitdiffhomepage
path: root/Test/TestMain.cpp
diff options
context:
space:
mode:
authorPhil Nash2010-11-29 19:40:44 +0000
committerPhil Nash2010-11-29 19:40:44 +0000
commite6b2b0e656d52f95a9fd292199f9eefb59eae585 (patch)
treeb6f1dce7164b84a38d9d9be2226655f322362b1a /Test/TestMain.cpp
parent3d6fa6897096bd4d0ad1bf3a28436dc9fc922caf (diff)
downloadcatch3-e6b2b0e656d52f95a9fd292199f9eefb59eae585.tar.gz
Implemented more reporter methods and started to fill out Section impl
Diffstat (limited to 'Test/TestMain.cpp')
-rw-r--r--Test/TestMain.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/Test/TestMain.cpp b/Test/TestMain.cpp
index 98f85160..0fc13551 100644
--- a/Test/TestMain.cpp
+++ b/Test/TestMain.cpp
@@ -14,6 +14,7 @@
#include "../catch_runner.hpp"
// This code runs the meta tests and verifies that the failing ones failed and the successful ones succeeded
+/*
int main (int argc, char * const argv[])
{
using namespace Catch;
@@ -22,17 +23,18 @@ int main (int argc, char * const argv[])
if( argc > 1 && ( std::string( argv[1] ) == "-s" || std::string( argv[1] ) == "--success" ) )
showAllResults = true;
+ std::ostringstream ossSucceeding;
+ std::ostringstream ossFailing;
+
ReporterConfig reporterConfig( ReporterConfig::Include::SuccessfulResults );
BasicReporter reporter (reporterConfig );
- Runner runner;
- runner.setReporter( &reporter );
- std::ostringstream ossSucceeding;
+ Runner runner( &reporter );
+
reporterConfig.setStreamBuf( ossSucceeding.rdbuf() );
runner.runMatching( "succeeding/*" );
std::string succeedingResults = ossSucceeding.str();
- std::ostringstream ossFailing;
reporterConfig.setStreamBuf( ossFailing.rdbuf() );
runner.runMatching( "failing/*" );
std::string failingResults = ossFailing.str();
@@ -56,10 +58,12 @@ int main (int argc, char * const argv[])
{
std::cout << failingResults << "\n\n";
}
-
+
if( result == 0 )
{
std::cout << "All " << runner.getSuccessCount() + runner.getFailureCount() << " tests completed successfully" << std::endl;
}
return result;
}
+*/
+#include "catch_default_main.hpp" \ No newline at end of file