Omit tests directory while couting the coverage report

We forgot to omit tests directory.
By side-effect of it we can increase the coverage to 90% :D

Change-Id: I0611c41b472e2d3c02f50e5569088471a3419314
This commit is contained in:
Maciej Józefczyk 2020-07-27 14:58:14 +02:00
parent e4f6b8ff8d
commit 2da9f3df10
2 changed files with 8 additions and 1 deletions

7
.coveragerc Normal file
View File

@ -0,0 +1,7 @@
[run]
branch = True
source = ovn_octavia_provider
omit = ovn_octavia_provider/tests/*
[report]
ignore_errors = True

View File

@ -62,7 +62,7 @@ setenv =
commands = commands =
stestr run --no-subunit-trace {posargs} stestr run --no-subunit-trace {posargs}
coverage combine coverage combine
coverage report --fail-under=79 --skip-covered coverage report --fail-under=90 --skip-covered
coverage html -d cover coverage html -d cover
coverage xml -o cover/coverage.xml coverage xml -o cover/coverage.xml