From 5d22d8c97f9b74b80654016c3d6f36df9f024ef0 Mon Sep 17 00:00:00 2001 From: Dantali0n Date: Fri, 2 Jul 2021 10:38:31 +0200 Subject: [PATCH] Repair coverage report tox job Coverage report job for watcher dashboard must have been broken for an extensive amount of time. This patch fixes it. Change-Id: I3f0ec731d28d0f55c4378038237dc91b5c548ed5 --- .gitignore | 1 + tox.ini | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 617f64e..6485d46 100644 --- a/.gitignore +++ b/.gitignore @@ -24,6 +24,7 @@ pip-log.txt # Unit test / coverage reports .coverage +cover/ .tox nosetests.xml .testrepository diff --git a/tox.ini b/tox.ini index edfcf61..ab3e002 100644 --- a/tox.ini +++ b/tox.ini @@ -36,7 +36,14 @@ commands = {posargs} commands = sphinx-build -a -E -W -d releasenotes/build/doctrees --keep-going -b html releasenotes/source releasenotes/build/html [testenv:cover] -commands = python setup.py testr --coverage --testr-args='{posargs}' +commands = + coverage erase + coverage run --source watcher_dashboard {toxinidir}/manage.py test \ + --settings=watcher_dashboard.test.settings \ + --exclude-tag integration watcher_dashboard {posargs} + coverage xml + coverage html -d ./cover --omit='*tests*' + coverage report [testenv:docs] deps =