diff options
| author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-06-02 11:33:07 +0200 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2024-06-17 19:30:10 +0300 |
| commit | a3d3efd3cfc6e9b0ce8a7536527e1e9ca134f80a (patch) | |
| tree | 93d710f0803bc2c8ec2f7607faa5c142d5b82bb0 /docs/markdown/Unit-tests.md | |
| parent | c199faf9807fb898e1c6744c43728dc87c93a0bc (diff) | |
| download | meson-a3d3efd3cfc6e9b0ce8a7536527e1e9ca134f80a.tar.gz | |
Add meson test --max-lines
Let's allow users to configure how many lines are shown at most when
a test fails.
Diffstat (limited to 'docs/markdown/Unit-tests.md')
| -rw-r--r-- | docs/markdown/Unit-tests.md | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/markdown/Unit-tests.md b/docs/markdown/Unit-tests.md index 6fda0f5f6..b5d3a1b81 100644 --- a/docs/markdown/Unit-tests.md +++ b/docs/markdown/Unit-tests.md @@ -274,6 +274,14 @@ other useful information as the environmental variables. This is useful, for example, when you run the tests on Travis-CI, Jenkins and the like. +By default, the output from tests will be limited to the last 100 lines. The +maximum number of lines to show can be configured with the `--max-lines` option +*(added 1.5.0)*: + +```console +$ meson test --max-lines=1000 testname +``` + **Timeout** In the test case options, the `timeout` option is specified in a number of seconds. |
