The linters and the tests are executed on the CI, so you'll have to make sure they pass before we merge your pull request.
You can execute the tests with:
$ make test
Execute the tests of a specific file with the FILE=
parameter:
$ make test FILE=tests/Controller/OrganizationsControllerTest.php
Filter tests with the FILTER=
parameter (it takes a function name, or a part of it):
$ make test FILE=tests/Controller/OrganizationsControllerTest.php FILTER=testGetIndex
The previous command generates code coverage under the folder coverage/
.
To disable code coverage, run the command:
$ make test COVERAGE=
Execute the linters with:
$ make lint
$ # or to fix errors
$ make lint-fix
You can run a specific linter with:
$ make lint LINTER=phpstan
$ make lint LINTER=rector
$ make lint LINTER=phpcs
$ make lint LINTER=symfony
$ make lint LINTER=js
$ make lint LINTER=css