Skip to content

Commit 2f4a7fc

Browse files
committed
docs/hacking: document how to run single tests
1 parent d738faf commit 2f4a7fc

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

doc/manual/src/hacking.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,16 @@ $ meson test
4646
$ YATH_JOB_COUNT=$NIX_BUILD_CORES meson test
4747
```
4848

49+
To run individual tests:
50+
51+
```console
52+
# Run a specific test file
53+
$ PERL5LIB=t/lib:$PERL5LIB perl t/test.pl t/Hydra/Controller/API/checks.t
54+
55+
# Run all tests in a directory
56+
$ PERL5LIB=t/lib:$PERL5LIB perl t/test.pl t/Hydra/Controller/API/
57+
```
58+
4959
**Warning**: Currently, the tests can fail
5060
if run with high parallelism [due to an issue in
5161
`Test::PostgreSQL`](https://github.com/TJC/Test-postgresql/issues/40)

0 commit comments

Comments
 (0)