Skip to content

Commit a9ab62d

Browse files
committed
Add a brief section on options to the test runner, and -j
1 parent 0c82801 commit a9ab62d

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

docs/source/miscellaneous/running-tests.rst

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,31 @@ Tester can easily execute tests selectively with as follows:
5858
./sapi/cli/php run-tests.php ext/mbstring/*
5959
./sapi/cli/php run-tests.php ext/mbstring/020.phpt
6060
61+
*********************
62+
Test Runner Options
63+
*********************
64+
65+
The ``run-tests.php`` test runner has many options. You can see these options by using the ``-h``
66+
option with ``run-tests.php``.
67+
68+
You can set options by specifying them on the command line when you run ``php run-tests.php`` or if
69+
you use ``make test`` through the ``TEST_PHP_ARGS`` environment variable:
70+
71+
.. code:: shell
72+
73+
php run-tests.php -j24
74+
# or
75+
TEST_PHP_ARGS="-j24" make test
76+
77+
Running Tests in Parallel
78+
=========================
79+
80+
The test runner can run tests in parallel, by using the ``-j`` option:
81+
82+
.. code:: shell
83+
84+
php run-tests.php -j24 ext/date/*.phpt
85+
6186
**************
6287
Test results
6388
**************

0 commit comments

Comments
 (0)