File tree 4 files changed +15
-2
lines changed
4 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 1
1
* .cache
2
2
vendor /
3
- * .lock
3
+ * .lock
4
+ coverage /
Original file line number Diff line number Diff line change @@ -139,6 +139,12 @@ Run your tests to verify that slugs are generated as expected:
139
139
composer test
140
140
```
141
141
142
+ Run code coverage analysis to generate a coverage report. This will generate a coverage report in the ` coverage ` directory.
143
+
144
+ ``` bash
145
+ composer coverage
146
+ ```
147
+
142
148
Run PHPStan to check for potential issues in the code:
143
149
144
150
``` bash
Original file line number Diff line number Diff line change 34
34
"scripts" : {
35
35
"phpcs-fix" : " ./vendor/bin/php-cs-fixer fix " ,
36
36
"phpstan" : " ./vendor/bin/phpstan analyse --memory-limit=-1 src/" ,
37
- "test" : " ./vendor/bin/phpunit --testdox"
37
+ "test" : " ./vendor/bin/phpunit --testdox" ,
38
+ "coverage" : " ./vendor/bin/phpunit --coverage-html coverage/"
38
39
},
39
40
"config" : {
40
41
"sort-packages" : true
Original file line number Diff line number Diff line change 10
10
<env name =" DB_CONNECTION" value =" sqlite" />
11
11
<env name =" DB_DATABASE" value =" :memory:" />
12
12
</php >
13
+ <source >
14
+ <include >
15
+ <directory suffix =" .php" >src/</directory >
16
+ </include >
17
+ </source >
13
18
</phpunit >
You can’t perform that action at this time.
0 commit comments