From 282e3fdd684706c004593a2cddaffd5282cf7f95 Mon Sep 17 00:00:00 2001 From: Alex Forencich Date: Thu, 3 Dec 2020 13:32:03 -0800 Subject: [PATCH] Collect coverage information --- setup.cfg | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 685de84..7ff4622 100644 --- a/setup.cfg +++ b/setup.cfg @@ -54,10 +54,30 @@ python = 3.9: py39 [testenv] +setenv = + COVERAGE=1 + deps = pytest pytest-xdist cocotb-test + coverage + pytest-cov 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/*