8000 Adds section on parallelizing tests. · symfony/symfony-docs@ddd5f05 · GitHub
[go: up one dir, main page]

Skip to content

Commit ddd5f05

Browse files
Denis Brumannjaviereguiluz
Denis Brumann
authored andcommitted
Adds section on parallelizing tests.
1 parent eda7e3e commit ddd5f05

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

components/phpunit_bridge.rst

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,32 @@ The summary includes:
124124
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
125125
</listeners>
126126
127+
Running Tests in Parallel
128+
-------------------------
129+
130+
The modified PHPUnit script allows running tests in parallel by providing
131+
a directory containing multiple suites with their own ``phpunit.xml.dist``.
132+
133+
.. code-block:: terminal
134+
135+
├── tests
136+
│   ├── Functional
137+
│   │   ├── ...
138+
│   │   └── phpunit.xml.dist
139+
│   ├── Unit
140+
│   │   ├── ...
141+
│   │   └── phpunit.xml.dist
142+
143+
.. code-block:: terminal
144+
145+
$ ./vendor/bin/simple-phpunit tests/
146+
147+
The modified PHPUnit script will recursively go through the provided directory,
148+
up to a depth of 3 subfolders or the value specified by the environment variable
149+
``SYMFONY_PHPUNIT_MAX_DEPTH``, looking for ``phpunit.xml.dist`` files and then
150+
run each suite it finds in parallel, collecting their output and display each
151+
suites test results in their own section.
152+
127153
Trigger Deprecation Notices
128154
---------------------------
129155

0 commit comments

Comments
 (0)
0