From 2ba631074d9c8bbd882721e2b89d44a677282dfd Mon Sep 17 00:00:00 2001 From: Yushiro FURUKAWA Date: Thu, 16 Aug 2018 17:52:58 +0900 Subject: [PATCH] Fix coverage command for tox This patch fixes to specify project name directly and ignores cover/ directory in running 'tox -e cover'. Change-Id: I76ed822a6143269ea1bc75c04164262360cde30a --- .gitignore | 1 + tox.ini | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 0e33d7c..cb18772 100644 --- a/.gitignore +++ b/.gitignore @@ -22,6 +22,7 @@ lib64 pip-log.txt # Unit test / coverage reports +cover/* .coverage .tox .stestr/ diff --git a/tox.ini b/tox.ini index 8c7c843..4d82d15 100644 --- a/tox.ini +++ b/tox.ini @@ -20,7 +20,7 @@ commands = {posargs} [testenv:cover] setenv = - PYTHON=coverage run --source $project --parallel-mode + PYTHON=coverage run --source scciclient --parallel-mode commands = stestr run '{posargs}' coverage combine