Always run cocotb library coverage on tox
@@ -5,6 +5,7 @@ envlist = py3
setenv =
CFLAGS = -Werror
CXXFLAGS = -Werror
+ COCOTB_LIBRARY_COVERAGE = 1
passenv =
SIM
TOPLEVEL_LANG
@@ -21,9 +22,11 @@ deps =
commands =
pytest
make test
+ bash -c 'find . -type f -name "\.coverage\.cocotb" | xargs coverage combine --append'
whitelist_externals =
make
+ bash
# needed for coverage to work
usedevelop=True
