mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
complete chill documentation about csfixer and phpstan
This commit is contained in:
parent
863a384a85
commit
e91d2c9e93
@ -265,7 +265,7 @@ Tests reside inside the installed bundles. You must `cd` into that directory, do
|
|||||||
|
|
||||||
**Note**: some bundle require the fixture to be executed. See the dedicated _how-tos_.
|
**Note**: some bundle require the fixture to be executed. See the dedicated _how-tos_.
|
||||||
|
|
||||||
Exemple, for running test inside `main` bundle:
|
Exemple, for running unit test inside `main` bundle:
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
@ -280,6 +280,30 @@ Exemple, for running test inside `main` bundle:
|
|||||||
# run tests
|
# run tests
|
||||||
bin/phpunit src/Bundle/path/to/your/test
|
bin/phpunit src/Bundle/path/to/your/test
|
||||||
|
|
||||||
|
Or for running tests to check code style and php conventions with csfixer and phpstan:
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
|
# run code style fixer
|
||||||
|
bin/grumphp run --tasks=phpcsfixer
|
||||||
|
# run phpstan
|
||||||
|
bin/grumphp run --tasks=phpstan
|
||||||
|
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
To avoid phpstan block your commits:
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
|
git commit -n ...
|
||||||
|
|
||||||
|
To avoid phpstan block your commits permanently:
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
|
./bin/grumphp git:deinit
|
||||||
|
|
||||||
How to run webpack interactively
|
How to run webpack interactively
|
||||||
================================
|
================================
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user