diff --git a/projects/SelfTest/CmdLineTests.cpp b/projects/SelfTest/CmdLineTests.cpp index d03d7473..dde70245 100644 --- a/projects/SelfTest/CmdLineTests.cpp +++ b/projects/SelfTest/CmdLineTests.cpp @@ -531,6 +531,7 @@ struct Config { std::string reporterName; std::string fileName; std::string suiteName; + std::string reporter; std::vector warnings; std::vector testsOrTags; @@ -581,6 +582,12 @@ TEST_CASE( "growing new Catch cli" ) { .longOpt( "out" ) .argName( "file name" ); + cli.bind( &Config::reporter ) + .describe( "e.g. console | xml | junit" ) + .shortOpt( "r") + .longOpt( "reporter" ) + .argName( "reporter name[:filename]" ); + cli.bind( &Config::suiteName ) .describe( "suite name" ) .shortOpt( "n")