Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b4da05b

Browse filesBrowse files
committed
Merge branch '4.3' into 4.4
* 4.3: Adds section on parallelizing tests.
2 parents 8b387ba + e22f70d commit b4da05b
Copy full SHA for b4da05b

File tree

1 file changed

+26
-0
lines changed
Filter options

1 file changed

+26
-0
lines changed

‎components/phpunit_bridge.rst

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

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.