diff --git a/.coveragerc b/.coveragerc index 3259411..03e0b31 100644 --- a/.coveragerc +++ b/.coveragerc @@ -23,6 +23,3 @@ exclude_lines = ignore_errors = True show_missing = True - -[json] -output = .coverage.json diff --git a/tox.ini b/tox.ini index 684bee9..1405b37 100644 --- a/tox.ini +++ b/tox.ini @@ -18,11 +18,13 @@ DB = [testenv] install_command = pip install -e ".[testing]" -U {opts} {packages} -# Run coverage in append mode so that we get a combined report over all environments. This can not be combined with parallel mode. This only affects local working, because each env is run on a different runner in CI. -commands = coverage run -a testmanage.py test --deprecation all {posargs: -v 2} -commands_post = - # Convert to json for CodeCov - coverage json +# Run coverage in append mode so that we get a combined report over all environments. +# This can not be combined with parallel mode. +# This only affects local working, because each env is run on a different runner in CI. +# The report is converted to json to be uploaded to codecov. +commands = + coverage run -a testmanage.py test --deprecation all {posargs: -v 2} + coverage json --data-file .coverage -o .coverage.json basepython = python3.8: python3.8