From 2da9d6d2117e254e4f343c2939a976cfa7bbb4ba Mon Sep 17 00:00:00 2001 From: Fei Long Wang Date: Fri, 26 May 2017 11:27:09 +1200 Subject: [PATCH] Fix the cover job Change-Id: Ib4ccf1e817cfa1b2848670261f0b9986bf978a26 --- tox.ini | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 86bb33b..77d5fc2 100644 --- a/tox.ini +++ b/tox.ini @@ -27,7 +27,11 @@ sitepackages = True commands = flake8 [testenv:cover] -setenv = NOSE_WITH_COVERAGE=1 +commands = + coverage erase + find . -type f -name "*.pyc" -delete + python setup.py testr --coverage --testr-args='{posargs}' + coverage report [testenv:venv] commands = {posargs}