write coverage file for each tox environment

This commit is contained in:
Robert Kaussow 2019-03-25 10:30:51 +01:00
parent d2dec85cd5
commit c5a5d98d0a

View File

@ -8,6 +8,7 @@ isolated_build = True
[testenv] [testenv]
usedevelop = True usedevelop = True
passenv = PY_COLORS passenv = PY_COLORS
setenv = COVERAGE_FILE={envdir}/.coverage
deps = deps =
-rtest-requirements.txt -rtest-requirements.txt
ansible25: ansible>=2.5,<2.6 ansible25: ansible>=2.5,<2.6
@ -16,4 +17,4 @@ deps =
ansibledevel: git+https://github.com/ansible/ansible.git ansibledevel: git+https://github.com/ansible/ansible.git
commands = commands =
ansible-later --help ansible-later --help
pytest tests/ --cov={toxinidir}/ansiblelater/ --no-cov-on-fail --cov-append pytest tests/ --cov={toxinidir}/ansiblelater/ --no-cov-on-fail