Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2/internal
diff options
context:
space:
mode:
authorDaniel Feist2022-04-23 23:14:49 +0200
committerGitHub2022-04-23 23:14:49 +0200
commit291b35b389b8e6d7b560cf7e43b6c72c4b73e522 (patch)
treed2dc107dbe6d2d5965ce63941b7d4a2fe123bd07 /src/catch2/internal
parentf526ff0fc37ae00ff2c0dc8f6550bf8209c30afc (diff)
downloadcatch3-291b35b389b8e6d7b560cf7e43b6c72c4b73e522.tar.gz
Added --skip-benchmarks command-line option. (#2408)
Closes #2392 Co-authored-by: Martin Hořeňovský <martin.horenovsky@gmail.com>
Diffstat (limited to 'src/catch2/internal')
-rw-r--r--src/catch2/internal/catch_commandline.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/catch2/internal/catch_commandline.cpp b/src/catch2/internal/catch_commandline.cpp
index 59b06de9..f2f638bc 100644
--- a/src/catch2/internal/catch_commandline.cpp
+++ b/src/catch2/internal/catch_commandline.cpp
@@ -296,6 +296,9 @@ namespace Catch {
| Opt( setWaitForKeypress, "never|start|exit|both" )
["--wait-for-keypress"]
( "waits for a keypress before exiting" )
+ | Opt( config.skipBenchmarks)
+ ["--skip-benchmarks"]
+ ( "disable running benchmarks")
| Opt( config.benchmarkSamples, "samples" )
["--benchmark-samples"]
( "number of samples to collect (default: 100)" )