From dc754c8bc8a21b54d3bc05c5d5736fb6143b276f Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Tue, 25 Aug 2015 13:04:01 +0200 Subject: [PATCH] Doc about new way of running tests --- contributing/code/tests.rst | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/contributing/code/tests.rst b/contributing/code/tests.rst index 913c5419b71..fed679128c5 100644 --- a/contributing/code/tests.rst +++ b/contributing/code/tests.rst @@ -16,14 +16,13 @@ In any case, it's a good practice to run tests locally before submitting a Before Running the Tests ------------------------ -To run the Symfony test suite, `install PHPUnit`_ 4.2 (or later) first. Then, -install the external dependencies used during the tests, such as Doctrine, Twig -and Monolog. To do so, :doc:`install Composer ` and execute -the following: +To run the Symfony test suite, install the external dependencies used during the +tests, such as Doctrine, Twig and Monolog. To do so, +:doc:`install Composer ` and execute the following: .. code-block:: bash - $ composer install + $ composer update .. _running: @@ -35,7 +34,7 @@ command: .. code-block:: bash - $ phpunit + $ php ./phpunit symfony The output should display ``OK``. If not, read the reported errors to figure out 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. .. code-block:: bash - $ phpunit src/Symfony/Component/Finder/ + $ php ./phpunit src/Symfony/Component/Finder/ -.. _`install PHPUnit`: https://phpunit.de/manual/current/en/installation.html +.. tip:: + + On Windows, install the `ConEmu`_ or `ANSICON`_ free applications to see + colored test results. + +.. _ConEmu: https://code.google.com/p/conemu-maximus5/ +.. _ANSICON: https://github.com/adoxa/ansicon/releases 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