From d8b0d4805558b71f0710a4c43f5160f173d982b2 Mon Sep 17 00:00:00 2001 From: Kenneth Giusti Date: Mon, 20 Aug 2018 15:20:47 -0400 Subject: [PATCH] Fix the coverage tox tests Change-Id: I45f7269c95807e7a804f116c2d1aed6baf9f46e2 --- .gitignore | 1 + tox.ini | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index ca75bddd2..87a5a681c 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ doc/source/api/ dist/ .stestr/ releasenotes/build +cover/ diff --git a/tox.ini b/tox.ini index 9d07185f8..d78015697 100644 --- a/tox.ini +++ b/tox.ini @@ -24,8 +24,13 @@ commands = [testenv:cover] basepython = python3 +setenv = + PYTHON=coverage run --source oslo_messaging --parallel-mode commands = - python setup.py test --coverage --coverage-package-name=oslo_messaging --testr-args='{posargs}' + stestr run --slowest {posargs} + coverage combine + coverage html -d cover + coverage report [testenv:venv] basepython = python3