Collect coverage information
This commit is contained in:
22
setup.cfg
22
setup.cfg
@@ -54,10 +54,30 @@ python =
|
|||||||
3.9: py39
|
3.9: py39
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
|
setenv =
|
||||||
|
COVERAGE=1
|
||||||
|
|
||||||
deps =
|
deps =
|
||||||
pytest
|
pytest
|
||||||
pytest-xdist
|
pytest-xdist
|
||||||
cocotb-test
|
cocotb-test
|
||||||
|
coverage
|
||||||
|
pytest-cov
|
||||||
|
|
||||||
commands =
|
commands =
|
||||||
pytest -n auto
|
pytest --cov=cocotbext --cov=tests --cov-branch -n auto
|
||||||
|
bash -c 'find . -type f -name "\.coverage" | xargs coverage combine --append'
|
||||||
|
|
||||||
|
whitelist_externals =
|
||||||
|
bash
|
||||||
|
|
||||||
|
# combine if paths are different
|
||||||
|
[coverage:paths]
|
||||||
|
source =
|
||||||
|
cocotbext/
|
||||||
|
/*/cocotbext
|
||||||
|
|
||||||
|
# do not report dependencies
|
||||||
|
[coverage:report]
|
||||||
|
omit =
|
||||||
|
.tox/*
|
||||||
|
|||||||
Reference in New Issue
Block a user