File tree Expand file tree Collapse file tree 2 files changed +24
-3
lines changed
Expand file tree Collapse file tree 2 files changed +24
-3
lines changed Original file line number Diff line number Diff line change @@ -169,14 +169,29 @@ Change the factory class in `config/queue.php`:
169169## Testing
170170
171171Setup RabbitMQ using ` docker-compose ` :
172+
172173``` bash
173174docker-compose up -d
174175```
175176
176- Run tests :
177+ To run the test suite you can use the following commands :
177178
178- ``` bash
179+ ``` bash
180+ # To run both style and unit tests.
179181composer test
182+
183+ # To run only style tests.
184+ composer test:style
185+
186+ # To run only unit tests.
187+ composer test:unit
188+ ```
189+
190+ If you receive any errors from the style tests, you can automatically fix most,
191+ if not all of the issues with the following command:
192+
193+ ``` bash
194+ composer fix:style
180195```
181196
182197## Contribution
Original file line number Diff line number Diff line change 4646 }
4747 },
4848 "scripts" : {
49- "test" : " vendor/bin/phpunit"
49+ "test" : [
50+ " @test:style" ,
51+ " @test:unit"
52+ ],
53+ "test:style" : " @php vendor/bin/php-cs-fixer fix --config=.php_cs.dist --allow-risky=yes --dry-run --diff --verbose" ,
54+ "test:unit" : " @php vendor/bin/phpunit" ,
55+ "fix:style" : " @php vendor/bin/php-cs-fixer fix --config=.php_cs.dist --allow-risky=yes --diff --verbose"
5056 },
5157 "minimum-stability" : " dev" ,
5258 "prefer-stable" : true
You can’t perform that action at this time.
0 commit comments