mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 21:36:11 +01:00
Added dummy listener registration
This commit is contained in:
parent
24af32f378
commit
28f11a7149
@ -24,25 +24,11 @@ CATCH_REGISTER_TAG_ALIAS( "[@tricky]", "[tricky]~[.]" )
|
|||||||
# pragma clang diagnostic ignored "-Wc++98-compat"
|
# pragma clang diagnostic ignored "-Wc++98-compat"
|
||||||
#endif
|
#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 ); }
|
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]" ) {
|
TEST_CASE( "Process can be configured on command line", "[config][command-line]" ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user