diff options
| author | khyperia | 2020-01-27 15:43:27 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2020-02-16 15:44:23 +0100 |
| commit | 3c7e737a7bcf2d2059b1db2a5a221f76806ae8b0 (patch) | |
| tree | bcbf40fe8e4914c8ecc3a585066933bf871652c7 /tests/SelfTest/IntrospectiveTests | |
| parent | e880da93bd335e59a0d4b00bfcb9f06ab4b7c847 (diff) | |
| download | catch3-3c7e737a7bcf2d2059b1db2a5a221f76806ae8b0.tar.gz | |
Allow configuring of benchmark warmup time
Diffstat (limited to 'tests/SelfTest/IntrospectiveTests')
| -rw-r--r-- | tests/SelfTest/IntrospectiveTests/CmdLine.tests.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/SelfTest/IntrospectiveTests/CmdLine.tests.cpp b/tests/SelfTest/IntrospectiveTests/CmdLine.tests.cpp index 68dafad1..b7d5c9c2 100644 --- a/tests/SelfTest/IntrospectiveTests/CmdLine.tests.cpp +++ b/tests/SelfTest/IntrospectiveTests/CmdLine.tests.cpp @@ -497,17 +497,23 @@ TEST_CASE( "Process can be configured on command line", "[config][command-line]" REQUIRE(config.benchmarkResamples == 20000); } - SECTION("resamples") { + SECTION("confidence-interval") { CHECK(cli.parse({ "test", "--benchmark-confidence-interval=0.99" })); REQUIRE(config.benchmarkConfidenceInterval == Catch::Approx(0.99)); } - SECTION("resamples") { + SECTION("no-analysis") { CHECK(cli.parse({ "test", "--benchmark-no-analysis" })); REQUIRE(config.benchmarkNoAnalysis); } + + SECTION("warmup-time") { + CHECK(cli.parse({ "test", "--benchmark-warmup-time=10" })); + + REQUIRE(config.benchmarkWarmupTime == 10); + } } } |