1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
[tox]
envlist = pypy3,py39,report
[tool:pytest]
testpaths = tests
addopts =
--cov-report=term-missing
[testenv]
setenv =
py{py3,39}: COVERAGE_FILE = .coverage.{envname}
commands = pytest --cov {posargs:-vv}
deps =
pytest
coverage
# Note:
# This is here just to allow examples to be tested against
# the current code of pytest-cov. If you copy this then
# use "pytest-cov" instead of "../.."
../..
depends =
report: pypy3,py39
[testenv:report]
skip_install = true
deps = coverage
commands =
coverage combine
coverage html
coverage report --fail-under=100
|