Skip to content

Commit e037910

Browse files
committed
minor #5654 Doc about new way of running tests (nicolas-grekas)
This PR was merged into the 2.3 branch. Discussion ---------- Doc about new way of running tests | Q | A | ------------- | --- | Doc fix? | yes | New docs? | yes | Applies to | all | Fixed tickets | - Related to symfony/symfony#15575 Commits ------- dc754c8 Doc about new way of running tests
2 parents 05c57e3 + dc754c8 commit e037910

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

contributing/code/tests.rst

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,13 @@ In any case, it's a good practice to run tests locally before submitting a
1616
Before Running the Tests
1717
------------------------
1818

19-
To run the Symfony test suite, `install PHPUnit`_ 4.2 (or later) first. Then,
20-
install the external dependencies used during the tests, such as Doctrine, Twig
21-
and Monolog. To do so, :doc:`install Composer </cookbook/composer>` and execute
22-
the following:
19+
To run the Symfony test suite, install the external dependencies used during the
20+
tests, such as Doctrine, Twig and Monolog. To do so,
21+
:doc:`install Composer </cookbook/composer>` and execute the following:
2322

2423
.. code-block:: bash
2524
26-
$ composer install
25+
$ composer update
2726
2827
.. _running:
2928

@@ -35,7 +34,7 @@ command:
3534

3635
.. code-block:: bash
3736
38-
$ phpunit
37+
$ php ./phpunit symfony
3938
4039
The output should display ``OK``. If not, read the reported errors to figure out
4140
what's going on and if the tests are broken because of the new code.
@@ -48,6 +47,12 @@ what's going on and if the tests are broken because of the new code.
4847

4948
.. code-block:: bash
5049
51-
$ phpunit src/Symfony/Component/Finder/
50+
$ php ./phpunit src/Symfony/Component/Finder/
5251
53-
.. _`install PHPUnit`: https://phpunit.de/manual/current/en/installation.html
52+
.. tip::
53+
54+
On Windows, install the `ConEmu`_ or `ANSICON`_ free applications to see
55+
colored test results.
56+
57+
.. _ConEmu: https://code.google.com/p/conemu-maximus5/
58+
.. _ANSICON: https://github.com/adoxa/ansicon/releases

0 commit comments

Comments
 (0)