Fix tox configuration for coverage
[dcaegen2/platform/plugins.git] / cdap / cdapplugin / 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 commands=
15     coverage erase
16     pytest --junitxml xunit-results.{envname}.xml --cov cdapcloudify
17
18 [testenv:cov]
19 skip_install = true
20 deps=
21     coverage
22 setenv=
23     COVERAGE_FILE=.coverage
24 commands=
25     coverage combine
26     coverage xml
27
28 [pytest]
29 junit_family = xunit2