#2084: add coverage fail condition
This commit is contained in:
@@ -95,7 +95,7 @@ stages:
|
|||||||
version: '2.1.x'
|
version: '2.1.x'
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
coverage run -m --source=primaite pytest -v -o junit_family=xunit2 --junitxml=junit/test-results.xml
|
coverage run -m --source=primaite pytest -v -o junit_family=xunit2 --junitxml=junit/test-results.xml --cov-fail-under=80
|
||||||
coverage xml -o coverage.xml -i
|
coverage xml -o coverage.xml -i
|
||||||
coverage html -d htmlcov -i
|
coverage html -d htmlcov -i
|
||||||
displayName: 'Run tests and code coverage'
|
displayName: 'Run tests and code coverage'
|
||||||
|
|||||||
Reference in New Issue
Block a user