diff --git a/.zuul.yaml b/.zuul.yaml index e9b46b84..5c32be04 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -24,6 +24,7 @@ - project: templates: - check-requirements + - openstack-cover-jobs - horizon-nodejs10-jobs - horizon-non-primary-django-jobs - openstack-python3-wallaby-jobs diff --git a/tox.ini b/tox.ini index 9d6924f4..c8b4841b 100644 --- a/tox.ini +++ b/tox.ini @@ -52,7 +52,11 @@ commands = npm run {posargs:test} [testenv:cover] -commands = python setup.py test --coverage --testr-args='{posargs}' +commands = + coverage erase + coverage run --source=ironic_ui {toxinidir}/manage.py test ironic_ui.test.tests --settings=ironic_ui.test.settings {posargs} + coverage xml + coverage html -d ./cover --omit='*tests*' [testenv:docs] deps =