Skip to content

Document workers flag #103

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 10, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion Book/tests/running_the_test_suite.rst
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,17 @@ You can specify multiple target folders or files to run by separating each path
Executing tests in parallel
---------------------------

You can't.
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.

Example for running tests through run-tests.php:
```
run-tests.php -j8
```

Example for running tests through make:
```
make test TESTS="-j8"
```

More options
------------
Expand Down