PHPUnit Add Filter

This commit is contained in:
Jerry Yan 2020-12-18 18:22:29 +08:00
parent 49ceddbfb9
commit 90b6eabb8b
2 changed files with 6 additions and 0 deletions

View File

@ -16,3 +16,4 @@ unitTest:
reports: reports:
junit: junit:
- phpunit-report.xml - phpunit-report.xml
coverage: '/^\s*Lines:\s*\d+.\d+\%/'

View File

@ -13,4 +13,9 @@
<directory>./tests</directory> <directory>./tests</directory>
</testsuite> </testsuite>
</testsuites> </testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./src</directory>
</whitelist>
</filter>
</phpunit> </phpunit>