Skip to content

Commit fe58fd8

Browse files
Danackcmb69
andauthored
Document run-tests workers flag (#103)
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
1 parent aa831fd commit fe58fd8

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Book/tests/running_the_test_suite.rst

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,17 @@ You can specify multiple target folders or files to run by separating each path
9090
Executing tests in parallel
9191
---------------------------
9292

93-
You can't.
93+
Since PHP 7.4 you are able to run tests in parallel by passing a ``-j<workers>`` flag, where workers is the number of parallel processes you want. e.g. ``-j4`` would run 4 tests at once.
94+
95+
Example for running tests through run-tests.php:
96+
```
97+
run-tests.php -j8
98+
```
99+
100+
Example for running tests through make:
101+
```
102+
make test TESTS="-j8"
103+
```
94104

95105
More options
96106
------------

0 commit comments

Comments
 (0)