Migrate to stestr
Since we're touching the coverage jobs, also fix the coverage configuration. Change-Id: I04d3da810c8a10c9d5a04b456d8bef10fc4f798f
This commit is contained in:
parent
61a80f07ac
commit
24fffaf712
|
@ -1,7 +1,7 @@
|
|||
[run]
|
||||
branch = True
|
||||
source = {{cookiecutter.module_name}}
|
||||
omit = {{cookiecutter.module_name}}/tests/*,{{cookiecutter.module_name}}/openstack/*
|
||||
source = oslo_{{cookiecutter.module_name}}
|
||||
omit = oslo_{{cookiecutter.module_name}}/tests/*
|
||||
|
||||
[report]
|
||||
ignore_errors = True
|
||||
|
|
|
@ -11,7 +11,7 @@ install_command =
|
|||
setenv =
|
||||
VIRTUAL_ENV={envdir}
|
||||
deps = -r{toxinidir}/test-requirements.txt
|
||||
commands = python setup.py test --slowest --testr-args='{posargs}'
|
||||
commands = stestr run --slowest {posargs}
|
||||
|
||||
[testenv:common-constraints]
|
||||
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
|
||||
|
@ -31,11 +31,27 @@ install_command = {[testenv:common-constraints]install_command}
|
|||
commands = {posargs}
|
||||
|
||||
[testenv:cover]
|
||||
commands = python setup.py test --coverage --testr-args='{posargs}'
|
||||
deps = {[testenv]deps}
|
||||
coverage
|
||||
setenv =
|
||||
PYTHON=coverage run --source oslo_{{cookiecutter.module_name}} --parallel-mode
|
||||
commands =
|
||||
stestr run '{posargs}'
|
||||
coverage combine
|
||||
coverage html -d cover
|
||||
coverage xml -o cover/coverage.xml
|
||||
|
||||
[testenv:cover-constraints]
|
||||
install_command = {[testenv:common-constraints]install_command}
|
||||
commands = python setup.py test --coverage --testr-args='{posargs}'
|
||||
deps = {[testenv]deps}
|
||||
coverage
|
||||
setenv =
|
||||
PYTHON=coverage run --source oslo_{{cookiecutter.module_name}} --parallel-mode
|
||||
commands =
|
||||
stestr run '{posargs}'
|
||||
coverage combine
|
||||
coverage html -d cover
|
||||
coverage xml -o cover/coverage.xml
|
||||
|
||||
[testenv:docs]
|
||||
commands = sphinx-build -W -b html doc/source doc/build/html
|
||||
|
|
Loading…
Reference in New Issue