File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ /.phpunit.result.cache
12/composer.lock
23/phpstan.neon
4+ /var
35/vendor
Original file line number Diff line number Diff line change @@ -21,6 +21,13 @@ To run a single test use PHPUnit's `--filter` option:
2121ddev exec phpunit ./tests --debug --filter=testCannotProtectNonComposerRepository
2222```
2323
24+ ### Checking code coverage
25+
26+ ```
27+ ddev xdebug
28+ ddev composer coverage
29+ ```
30+
2431## Linting and fixing
2532
2633Linting for syntax, then style:
Original file line number Diff line number Diff line change 4444 "slevomat/coding-standard" : " ^8.28"
4545 },
4646 "scripts" : {
47+ "coverage" : [
48+ " @putenv XDEBUG_MODE=coverage" ,
49+ " phpunit --coverage-text --color=always --testdox"
50+ ],
4751 "phpcs" : " phpcs" ,
4852 "phpcbf" : " phpcbf" ,
4953 "phpstan" : " phpstan" ,
Original file line number Diff line number Diff line change 1+ <phpunit
2+ bootstrap =" vendor/autoload.php"
3+ colors =" true"
4+ convertErrorsToExceptions =" true"
5+ convertNoticesToExceptions =" true"
6+ convertWarningsToExceptions =" true" >
7+ <testsuites >
8+ <testsuite name =" Tests" >
9+ <directory >tests</directory >
10+ </testsuite >
11+ </testsuites >
12+ <coverage cacheDirectory =" var/phpunit/coverage-cache" processUncoveredFiles =" true" >
13+ <include >
14+ <directory suffix =" .php" >src</directory >
15+ </include >
16+ </coverage >
17+ </phpunit >
You can’t perform that action at this time.
0 commit comments