Skip to content

Commit dc754c8

Browse files
Doc about new way of running tests
1 parent 79775ae commit dc754c8

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy