| |
@@ -1,18 +1,39 @@
|
| |
[tox]
|
| |
- envlist=py27,py35,py36,py37,py38
|
| |
+ envlist=py27,py35,py36,py37,py38,coverage
|
| |
skip_missing_interpreters = true
|
| |
minversion=3.12.0
|
| |
|
| |
[testenv]
|
| |
deps=
|
| |
- nose
|
| |
+ pytest
|
| |
+ pytest-cov
|
| |
mock
|
| |
freezegun
|
| |
unittest2
|
| |
koji
|
| |
kobo>=0.10.0
|
| |
+ setenv =
|
| |
+ COVERAGE_FILE={env:COVERAGE_FILE:{toxworkdir}/.coverage.{envname}}
|
| |
commands=
|
| |
- nosetests
|
| |
+ pytest \
|
| |
+ --cov "{toxinidir}/compose_utils" \
|
| |
+ --cov-config "{toxinidir}/tox.ini" \
|
| |
+ --junitxml {toxworkdir}/junit.{envname}.xml \
|
| |
+ {posargs:.}
|
| |
+
|
| |
+ [testenv:coverage]
|
| |
+ skip_install = true
|
| |
+ deps =
|
| |
+ {[testenv]deps}
|
| |
+ coverage
|
| |
+ setenv = COVERAGE_FILE={toxworkdir}/.coverage
|
| |
+ commands =
|
| |
+ coverage combine
|
| |
+ coverage report -m
|
| |
+ coverage xml -o {toxworkdir}/coverage.xml
|
| |
+ coverage html -d {toxworkdir}/htmlcov
|
| |
+ depends = py27, py35, py36, py37
|
| |
+ parallel_show_output = True
|
| |
|
| |
[flake8]
|
| |
exclude = doc,*.pyc,*.py~,*.in,*.spec,*.sh,*.rst
|
| |
This should simplify running the tests in jenkins, as well as provide better user experience for developers.
The make targets are not longer useful and deleted.