grafanalib/tox.ini
Bryan Boreham d02940342d Update versions of Python tested
Install 'pyenv' to run the installs.
2019-11-17 19:28:59 +00:00

23 lines
713 B
INI

# 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 = py27, py35, py37
[testenv]
commands = pytest --junitxml=test-results/junit-{envname}.xml
deps =
pytest
[testenv:coverage]
deps =
coverage
pytest
commands =
python -m coverage run --rcfile=.coveragerc -m pytest --strict --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