add new diffcover target for a future non-voting gate job

This target will fail if the changed lines of a PR are not 100% covered.

Change-Id: Ic7fa13ce6fe09daf2c1d9ea7012af26cdfc3899e
This commit is contained in:
Paul Kehrer 2014-10-29 10:36:10 -05:00
parent ffe9ac993f
commit 11d3676bed

10
tox.ini
View File

@ -11,6 +11,16 @@ commands =
coverage combine
coverage report -m
[testenv:diffcover]
deps =
{[testenv]deps}
diff_cover
commands =
python setup.py testr --coverage
coverage combine
coverage xml
diff-cover --fail-under 100 coverage.xml
[testenv:cover]
commands = coverage html {posargs:--include="*barbican*"}