catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
Clara: added -r option
- Commit
8d1100daa6c7c9aa75e0ef6cbdf8578f6635ba57- Author
- Phil Nash ·
- Parents
8333e644f2f1
Changes
projects/SelfTest/CmdLineTests.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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<std::string> warnings; std::vector<std::string> 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")