summaryrefslogtreecommitdiffstats
path: root/k8s/tox.ini
blob: 24fb8d50ec10afb3b537a1a8b8229579c023233d (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
[tox]
envlist = py27,py36,cov

[testenv]
# coverage can only find modules if pythonpath is set
setenv=
    PYTHONPATH={toxinidir}
    COVERAGE_FILE=.coverage.{envname}
deps=
    -rrequirements.txt
    pytest
    coverage
    pytest-cov
commands=
    coverage erase
    pytest --junitxml xunit-results.{envname}.xml --cov configure --cov k8sclient --cov k8splugin --cov msb

[testenv:cov]
skip_install = true
deps=
    coverage
setenv=
    COVERAGE_FILE=.coverage
commands=
    coverage combine
    coverage xml

[pytest]
junit_family = xunit2