mirror of
https://github.com/valitydev/grafanalib.git
synced 2024-11-06 02:05:19 +00:00
d02940342d
Install 'pyenv' to run the installs.
23 lines
713 B
INI
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
|