File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
doc/manual/src/development Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ ninja: no work to do.
162
162
Individual tests can be run with ` meson ` :
163
163
164
164
``` shell-session
165
- $ meson test ${testName}
165
+ $ meson test --verbose ${testName}
166
166
ninja: Entering directory `/home/jcericson/src/nix/master/build'
167
167
ninja: no work to do.
168
168
1/1 nix-functional-tests:main / ${testName} OK 0.41s
@@ -177,7 +177,11 @@ Timeout: 0
177
177
Full log written to /home/jcericson/src/nix/master/build/meson-logs/testlog.txt
178
178
```
179
179
180
- or without ` meson ` , showing the output:
180
+ The ` --verbose ` flag will make Meson also show the console output of each test for easier debugging.
181
+ The test script will then be traced with ` set -x ` and the output displayed as it happens,
182
+ regardless of whether the test succeeds or fails.
183
+
184
+ Tests can be also run directly without ` meson ` :
181
185
182
186
``` shell-session
183
187
$ TEST_NAME=${testName} NIX_REMOTE='' PS4='+(${BASH_SOURCE[0]-$0}:$LINENO) tests/functional/${testName}.sh
@@ -188,8 +192,6 @@ output from bar
188
192
...
189
193
```
190
194
191
- The test script will then be traced with ` set -x ` and the output displayed as it happens, regardless of whether the test succeeds or fails.
192
-
193
195
### Debugging failing functional tests
194
196
195
197
When a functional test fails, it usually does so somewhere in the middle of the script.
You can’t perform that action at this time.
0 commit comments