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