grafanalib/tox.ini
Bryan Boreham 8dab6f6d61 Save test results on CircleCI
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.
2019-04-15 15:44:09 +00:00

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