Browse Source

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
(cherry picked from commit 2da9f3df10)
changes/45/744445/1 0.1.2
Maciej Józefczyk 1 year ago
parent
commit
73030c5c7b
  1. 7
      .coveragerc
  2. 2
      tox.ini

7
.coveragerc

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

2
tox.ini

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

Loading…
Cancel
Save