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:
parent
ffe9ac993f
commit
11d3676bed
10
tox.ini
10
tox.ini
@ -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*"}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user