blob: 5edbe5b08f56082df6ae2ad54c0d6c589093c5b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
[tox]
envlist = py27,py36,py37,py38,cov
skip_missing_interpreters = true
[testenv]
# coverage can only find modules if pythonpath is set
setenv=
PYTHONPATH={toxinidir}
COVERAGE_FILE=.coverage.{envname}
deps=
-rrequirements.txt
pytest
coverage
pytest-cov
whitelist_externals=
/bin/mkdir
commands=
mkdir -p logs
coverage erase
pytest --junitxml xunit-results.{envname}.xml --cov dcaepolicyplugin
[testenv:cov]
skip_install = true
deps=
coverage
setenv=
COVERAGE_FILE=.coverage
commands=
coverage combine
coverage xml
coverage report
coverage html
[pytest]
junit_family = xunit2
|