From 2fb3b5ecff94e2fada7f356fc238485126f1a1e7 Mon Sep 17 00:00:00 2001 From: Masayuki Igawa Date: Fri, 4 Dec 2015 18:26:12 +0900 Subject: [PATCH] Fix coverage section in tox.ini This commit fixes the coverage section in tox.ini to get coverage and also changes .gitignore to ignore the cover directory and .coverage directories. Change-Id: Ia58b5d109ad045833d6c37e16fd0fe3705212ed0 --- .gitignore | 4 +++- tox.ini | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 8139c6d..d6ae633 100644 --- a/.gitignore +++ b/.gitignore @@ -21,7 +21,9 @@ lib64 pip-log.txt # Unit test / coverage reports -.coverage +cover/ +.coverage* +!.coveragerc .tox nosetests.xml .testrepository diff --git a/tox.ini b/tox.ini index c436cdb..931250f 100644 --- a/tox.ini +++ b/tox.ini @@ -22,7 +22,7 @@ commands = flake8 commands = {posargs} [testenv:cover] -commands = python setup.py testr --coverage --testr-args='{posargs}' +commands = python setup.py testr --coverage --coverage-package-name='os_testr' --testr-args='{posargs}' [testenv:docs] commands = python setup.py build_sphinx