Add threshold for code coverage
1. What is the problem? There is no mechaninsm to guarantee if the percentage of Unit Tests is reduced after submitting a patch. 2. What is the solution to the problem? Add a threshold into the gate job for ensuring a minimal percentage 3. What the features need to be implemented to the Tricircle to realize the solution? None Change-Id: I478d2ba2b9d60867ac3a48ddb19d8cb33ee67301
This commit is contained in:
parent
3e15d42dd9
commit
44375d6543
2
tox.ini
2
tox.ini
|
@ -31,7 +31,7 @@ commands = {posargs}
|
||||||
[testenv:cover]
|
[testenv:cover]
|
||||||
commands =
|
commands =
|
||||||
python setup.py testr --coverage --testr-args='{posargs}'
|
python setup.py testr --coverage --testr-args='{posargs}'
|
||||||
coverage report
|
coverage report --fail-under=71 --skip-covered
|
||||||
|
|
||||||
[testenv:genconfig]
|
[testenv:genconfig]
|
||||||
deps =
|
deps =
|
||||||
|
|
Loading…
Reference in New Issue