-
Notifications
You must be signed in to change notification settings - Fork 18
PHPUnit or Clover
Scott Dutton edited this page Dec 2, 2017
·
4 revisions
./vendor/bin/diffFilter --phpunit /tmp/diff.txt report/coverage.xml 90
Will fail (exit status 2) if less than 90% of the code committed is covered by a test. The input report needs to be in clover format (generated with --coverage-clover=report/coverage.xml
)
Note: This works for all clover output! so any project using clover can use this regardless of the language it was written for