Exclude cyborg tests dir in UT cover report

We don't care about coverage of actual test code, So exclude
cyborg/tests dir.

Change-Id: I534f652c098ed91afb8f52cfc6bb78268a4d5f21
This commit is contained in:
chenke 2019-10-29 22:04:08 +08:00
parent 1318fa9111
commit 5751cebaa2
3 changed files with 13 additions and 2 deletions

12
.coveragerc Normal file
View File

@ -0,0 +1,12 @@
[run]
branch = True
source = cyborg
omit =
cyborg/tests/*
cyborg/hacking/*
[report]
ignore_errors = True
exclude_lines =
@abc.abstract
raise NotImplementedError

1
.gitignore vendored
View File

@ -2,7 +2,6 @@
*.tox
*.retry
.coverage
.coveragerc
.coverage.*
.venv
.stestr/

View File

@ -1,3 +1,3 @@
[DEFAULT]
test_path=./
test_path=./cyborg/tests
top_dir=./