mirror of
https://github.com/valitydev/grafanalib.git
synced 2024-11-06 02:05:19 +00:00
8dab6f6d61
The JUNIT_XML setting was erroneously brought over from another repo; here we can just tell tox to put the results in a subdir and save that.
23 lines
719 B
INI
23 lines
719 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, py34, py35, py36
|
|
|
|
[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
|