diff options
| author | John Bytheway | 2020-04-13 08:34:27 -0400 |
|---|---|---|
| committer | Martin Hořeňovský | 2020-07-26 10:47:53 +0200 |
| commit | 80b0d6975c1582d03436ba82146983d557b0a1a6 (patch) | |
| tree | e9b9cc1e4eb1f5fb6a298eed1c89c16f6076a5d5 /src/catch2/interfaces | |
| parent | 36131f7ffa7f6a3e5a54de9fcf4f622e7b97a5a5 (diff) | |
| download | catch3-80b0d6975c1582d03436ba82146983d557b0a1a6.tar.gz | |
Add --min-duration option
A test runner already has a --durations option to print durations.
However, this isn't entirely satisfactory.
When there are many tests, this produces output spam which makes it hard
to find the test failure output. Nevertheless, it is helpful to be
informed of tests which are unusually slow.
Therefore, introduce a new option --min-duration that causes all
durations above a certain threshold to be printed. This allows slow
tests to be visible without mentioning every test.
Diffstat (limited to 'src/catch2/interfaces')
| -rw-r--r-- | src/catch2/interfaces/catch_interfaces_config.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/catch2/interfaces/catch_interfaces_config.hpp b/src/catch2/interfaces/catch_interfaces_config.hpp index 0612eb83..8f3926f5 100644 --- a/src/catch2/interfaces/catch_interfaces_config.hpp +++ b/src/catch2/interfaces/catch_interfaces_config.hpp @@ -67,6 +67,7 @@ namespace Catch { virtual int abortAfter() const = 0; virtual bool showInvisibles() const = 0; virtual ShowDurations::OrNot showDurations() const = 0; + virtual double minDuration() const = 0; virtual TestSpec const& testSpec() const = 0; virtual bool hasTestFilters() const = 0; virtual std::vector<std::string> const& getTestsOrTags() const = 0; |