diff options
| author | Phil Nash | 2017-08-17 19:40:39 +0100 |
|---|---|---|
| committer | Phil Nash | 2017-08-17 19:40:48 +0100 |
| commit | 28f11a714948d28812d3867d3f5f3e9b35a3e86e (patch) | |
| tree | 7e9964f2c5ab7ad6800800fb984b08e027f8a2a5 /projects/SelfTest/TestMain.cpp | |
| parent | 24af32f37871bbd3856c6f3021ba3639cb301b16 (diff) | |
| download | catch3-28f11a714948d28812d3867d3f5f3e9b35a3e86e.tar.gz | |
Added dummy listener registration
Diffstat (limited to 'projects/SelfTest/TestMain.cpp')
| -rw-r--r-- | projects/SelfTest/TestMain.cpp | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/projects/SelfTest/TestMain.cpp b/projects/SelfTest/TestMain.cpp index c3b1f29b..cdb13c52 100644 --- a/projects/SelfTest/TestMain.cpp +++ b/projects/SelfTest/TestMain.cpp @@ -24,25 +24,11 @@ CATCH_REGISTER_TAG_ALIAS( "[@tricky]", "[tricky]~[.]" ) # pragma clang diagnostic ignored "-Wc++98-compat" #endif +struct TestListener : Catch::TestEventListenerBase { + using TestEventListenerBase::TestEventListenerBase; // inherit constructor +}; +CATCH_REGISTER_LISTENER( TestListener ); -//template<size_t size> -//void parseIntoConfig( const char * (&argv)[size], Catch::ConfigData& config ) { -// auto parser = Catch::makeCommandLineParser(); -// parser.parseInto( Catch::Clara::argsToVector( size, argv ), config ); -//} -// -//template<size_t size> -//std::string parseIntoConfigAndReturnError( const char * (&argv)[size], Catch::ConfigData& config ) { -// try { -// parseIntoConfig( argv, config ); -// FAIL( "expected exception" ); -// } -// catch( std::exception& ex ) { -// return ex.what(); -// } -// return ""; -//} -// inline Catch::TestCase fakeTestCase( const char* name, const char* desc = "" ){ return Catch::makeTestCase( nullptr, "", name, desc, CATCH_INTERNAL_LINEINFO ); } TEST_CASE( "Process can be configured on command line", "[config][command-line]" ) { |