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
Went back to Catch 1.x behaviour for -d
- Commit
3bc03cd617eedaa4d0fd4de5811fd22503888f46- Author
- Phil Nash ·
- Parents
28f11a714948
Changes
include/internal/catch_commandline.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/internal/catch_commandline.cpp b/include/internal/catch_commandline.cpp index d92a1c39..1410baa4 100644 --- a/include/internal/catch_commandline.cpp +++ b/include/internal/catch_commandline.cpp @@ -135,7 +135,7 @@ namespace Catch { + Opt( setWarning, "warning name" ) ["-w"]["--warn"] ( "enable warnings" ) - + Opt( [&]( bool ) { config.showDurations = ShowDurations::Always; } ) + + Opt( [&]( bool flag ) { config.showDurations = flag ? ShowDurations::Always : ShowDurations::Never; }, "yes|no" ) ["-d"]["--durations"] ( "show test durations" ) + Opt( loadTestNamesFromFile, "filename" )