From a3d3efd3cfc6e9b0ce8a7536527e1e9ca134f80a Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Sun, 2 Jun 2024 11:33:07 +0200 Subject: Add meson test --max-lines Let's allow users to configure how many lines are shown at most when a test fails. --- docs/markdown/Unit-tests.md | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'docs/markdown/Unit-tests.md') 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. -- cgit v1.2.3