Fix tox configuration for coverage
[dcaegen2/platform/plugins.git] / clamp-policy / tox-local.ini
1 # tox -c tox-local.ini
2 [tox]
3 envlist = py27,py36,cov
4
5 [testenv]
6 # coverage can only find modules if pythonpath is set
7 setenv=
8     PYTHONPATH={toxinidir}
9     COVERAGE_FILE=.coverage.{envname}
10 deps=
11     -rrequirements.txt
12     pytest
13     coverage
14     pytest-cov
15 commands=
16     coverage erase
17     pytest --junitxml xunit-results.{envname}.xml --cov clamppolicyplugin
18
19 [testenv:cov]
20 skip_install = true
21 deps=
22     coverage
23 setenv=
24     COVERAGE_FILE=.coverage
25 commands=
26     coverage combine
27     coverage html
28
29 [pytest]
30 junit_family = xunit2