forked from weaveworks/grafanalib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
22 lines (19 loc) · 750 Bytes
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Tox (https://tox.readthedocs.io/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist = py36, py37, py38, py39
[testenv]
commands = pytest -o junit_family=xunit2 --junitxml=test-results/junit-{envname}.xml
deps =
pytest
[testenv:coverage]
deps =
coverage
pytest
commands =
python -m coverage run --rcfile=.coveragerc -m pytest --strict-markers --maxfail=1 --ff {posargs}
# Had 88% test coverage at time of introducing coverage ratchet.
# This number must only go up.
python -m coverage report --rcfile=.coveragerc --show-missing --fail-under=88