summaryrefslogtreecommitdiff
path: root/docs/markdown/Unit-tests.md
diff options
context:
space:
mode:
authorKhairul Azhar Kasmiran <kazarmy@gmail.com>2025-03-22 16:32:30 +0800
committerEli Schwartz <eschwartz93@gmail.com>2025-03-24 00:42:12 -0400
commit5d5f0ce8c3d4c0c0e83d1e33597748a9a2212bcb (patch)
tree9985ea7a891c9364490fe69f444a3c423e8587d9 /docs/markdown/Unit-tests.md
parent17117c2732c33ebec39e3fec2ecd5a3515dc7d71 (diff)
downloadmeson-5d5f0ce8c3d4c0c0e83d1e33597748a9a2212bcb.tar.gz
Fix doc for `meson test --print-errorlogs` [skip ci]
Diffstat (limited to 'docs/markdown/Unit-tests.md')
-rw-r--r--docs/markdown/Unit-tests.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/markdown/Unit-tests.md b/docs/markdown/Unit-tests.md
index 5a7b19940..e89f393a2 100644
--- a/docs/markdown/Unit-tests.md
+++ b/docs/markdown/Unit-tests.md
@@ -266,6 +266,11 @@ be specified *(added 0.52.0)*:
$ meson test --gdb --gdb-path /path/to/gdb testname
```
+Meson can print the error logs produced by failing tests via the
+`--print-errorlogs` option. The logs can include stack traces and environmental
+variables. This is especially useful when you run the tests on GitHub, Travis,
+Jenkins and the like:
+
```console
$ meson test --print-errorlogs
```
@@ -280,11 +285,6 @@ shell is spawned if it fails *(added 1.5.0)*:
$ meson test --interactive testname
```
-Meson will report the output produced by the failing tests along with
-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)*: