Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions contributing/code/tests.rst
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,18 @@ what's going on and if the tests are broken because of the new code.
On Windows, install the `Cmder`_, `ConEmu`_, `ANSICON`_ or `Mintty`_ free applications
to see colored test results.

Testing Generated Code
----------------------

Some tests generate code on the fly and check that it matches expected stored in
in a file. To regenerate those files, you can use the following approach, run
the tests with the environment variable ``TEST_GENERATE_FIXTURES`` set to ``1``:

.. code-block:: terminal

$ TEST_GENERATE_FIXTURES=1 php ./phpunit src/Symfony/Component/Config/Tests/Builder/GeneratedConfigTest.php


.. _`install Composer`: https://getcomposer.org/download/
.. _Cmder: https://cmder.app/
.. _ConEmu: https://conemu.github.io/
Expand Down
Loading