tox.ini: factorize
This commit is contained in:
parent
a6d8bf0bda
commit
f36d527932
21
tox.ini
21
tox.ini
|
@ -4,22 +4,19 @@
|
|||
# and then run "tox" from this directory.
|
||||
|
||||
[tox]
|
||||
envlist = coverage, nocoverage, package
|
||||
envlist = {coverage,},package
|
||||
|
||||
[testenv:coverage]
|
||||
usedevelop = true
|
||||
deps = pytest
|
||||
pytest-cov
|
||||
pytest-random
|
||||
setenv =
|
||||
coverage: COVERAGE=--junit-xml=junit.xml --cov=src --cov-report xml
|
||||
deps =
|
||||
coverage
|
||||
pytest
|
||||
pytest-cov
|
||||
pytest-random
|
||||
commands =
|
||||
py.test --junit-xml=junit.xml --cov=src --cov-report xml {posargs} tests
|
||||
|
||||
[testenv:nocoverage]
|
||||
deps = pytest
|
||||
pytest-cov
|
||||
pytest-random
|
||||
commands =
|
||||
py.test {posargs} tests
|
||||
py.test {env:COVERAGE:} {posargs:--random tests}
|
||||
|
||||
[testenv:package]
|
||||
# eobuilder is not on pypi, too bad
|
||||
|
|
Loading…
Reference in New Issue