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 /docs | |
| 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 'docs')
| -rw-r--r-- | docs/command-line.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/command-line.md b/docs/command-line.md index 1741eb8f..77e969b0 100644 --- a/docs/command-line.md +++ b/docs/command-line.md @@ -222,6 +222,10 @@ available warnings When set to ```yes``` Catch will report the duration of each test case, in milliseconds. Note that it does this regardless of whether a test case passes or fails. Note, also, the certain reporters (e.g. Junit) always report test case durations regardless of this option being set or not. +<pre>-D, --min-duration <value></pre> + +When set, Catch will report the duration of each test case that took more than <value> seconds, in milliseconds. + <a id="input-file"></a> ## Load test names to run from a file <pre>-f, --input-file <filename></pre> |