diff --git a/setup.py b/setup.py index 8ae0e99fb..0de3590b9 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ def get_setup_version(reponame): # (https://github.com/pypa/pip/issues/1197) 'tests': [ 'pytest', - 'pytest-cov', + 'coverage', 'flake8', ], 'doc': [ diff --git a/tox.ini b/tox.ini index 2f698123d..8169cbb28 100644 --- a/tox.ini +++ b/tox.ini @@ -16,7 +16,9 @@ python = description = run test suite under {basepython} deps = .[tests] commands = - pytest tests --cov=numbergen --cov=param --cov-append --cov-report xml + coverage run --source=numbergen,param -m pytest tests + coverage report + coverage xml [testenv:with_numpy] description = run test suite with numpy under {basepython} diff --git a/tox27.ini b/tox27.ini index 57e3dacdc..1c6079bb9 100644 --- a/tox27.ini +++ b/tox27.ini @@ -10,7 +10,9 @@ python = description = run test suite under {basepython} deps = .[tests] commands = - pytest tests --ignore tests/API1/testparamdepends_py3.py --cov=numbergen --cov=param --cov-append --cov-report xml + coverage run --source=numbergen,param -m pytest tests --ignore tests/API1/testparamdepends_py3.py + coverage report --omit param/_async.py + coverage xml --omit param/_async.py [testenv:with_numpy] description = run test suite with numpy under {basepython}