File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,20 +26,22 @@ symfony server:start -d
2626
2727## Lint & test your code
2828
29- ### Running PHPUnit tests
30-
31- Before running the tests, make sure the testing database is ready:
32-
3329``` shell
34- symfony console --env=test doctrine:database:create --if-not-exists
35- symfony console --env=test doctrine:schema:update --force
36- symfony console --env=test doctrine:fixtures:load --no-interaction
30+ # Run all linters
31+ symfony composer lint
3732```
3833
39- Run the PHPUnit tests:
34+ ### Running PHPUnit tests
4035
4136``` shell
42- symfony run bin/phpunit
37+ # Before running the tests, make sure the testing database is ready
38+ symfony composer tests:setup
39+
40+ # Run PHP tests
41+ symfony composer tests:php
42+
43+ # Run tests on Docker images
44+ symfony composer tests:docker
4345```
4446
4547[ codedmonkey-sponsor ] : https://www.codedmonkey.com/sponsor?project=dirigent
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ until it's second anniversary. See our [full license][license] for more details.
4040
4141## Contributing
4242
43- Feel free to report issues and make suggestions on [ GitHub] [ github-issues ] or follow our [ contribution guide] ( contributing .md) .
43+ Feel free to report issues and make suggestions on [ GitHub] [ github-issues ] or follow our [ contribution guide] ( CONTRIBUTING .md) .
4444
4545## About Me
4646
Original file line number Diff line number Diff line change 144144 " @tests:php:functional"
145145 ],
146146 "tests:php:functional" : " bin/phpunit tests/FunctionalTests" ,
147- "tests:php:unit" : " bin/phpunit tests/UnitTests"
147+ "tests:php:unit" : " bin/phpunit tests/UnitTests" ,
148+ "tests:setup" : [
149+ " bin/console --env=test doctrine:database:create --if-not-exists" ,
150+ " bin/console --env=test doctrine:schema:update --force" ,
151+ " bin/console --env=test doctrine:fixtures:load --no-interaction"
152+ ]
148153 },
149154 "scripts-descriptions" : {
150155 "build:standalone" : " Build the standalone image" ,
162167 "tests:docker:standalone" : " Run tests in the standalone image" ,
163168 "tests:php" : " Run all PHP tests" ,
164169 "tests:php:functional" : " Run the functional test suite" ,
165- "tests:php:unit" : " Run the unit test suite"
170+ "tests:php:unit" : " Run the unit test suite" ,
171+ "tests:setup" : " Prepare the Symfony test environment"
166172 },
167173 "config" : {
168174 "allow-plugins" : {
You can’t perform that action at this time.
0 commit comments