Phpunit: Add minimum coverage option to fail if coverage falls below a threshold

Created on 27 Sep 2015  路  2Comments  路  Source: sebastianbergmann/phpunit

When looking at coverage tools for other languages they frequently provide a configuration option to fail if coverage falls below a threshold. In coverage.py, the option is --fail-under. I think this feature would be useful in PHPUnit as well.

Some additional option to phpunit.xml such that coverage below a threshold results in some kind of failure that returns a non-zero exit status.

This feature would help continuous integration systems that want to catch commits that significantly drop coverage.

typenhancement

All 2 comments

+1

I do not thinks that functionality like this belongs in PHPUnit.

Was this page helpful?
0 / 5 - 0 ratings