Code Review
/
dcaegen2
/
platform
/
plugins.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Fix tox configuration for coverage
[dcaegen2/platform/plugins.git]
/
dcae-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
whitelist_externals=
16
/bin/mkdir
17
commands=
18
mkdir -p logs
19
coverage erase
20
pytest --junitxml xunit-results.{envname}.xml --cov dcaepolicyplugin
21
22
[testenv:cov]
23
skip_install = true
24
deps=
25
coverage
26
setenv=
27
COVERAGE_FILE=.coverage
28
commands=
29
coverage combine
30
coverage html
31
32
[pytest]
33
junit_family = xunit2