From c0d14da8a4c0012ab6de99f9096e6ccb06efed67 Mon Sep 17 00:00:00 2001 From: MORITA Kazutaka Date: Wed, 16 Apr 2014 10:44:35 +0900 Subject: [PATCH] Improve coverage report This creates a HTML coverage report with branch coverage information. Change-Id: I26e5b65d3288ffa517dcfccb3dbf0c533d6bf8d2 --- .gitignore | 1 + tox.ini | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/.gitignore b/.gitignore index 84856ff4..99eea7b4 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,7 @@ .coverage build dist +cover # # for GLOBAL diff --git a/tox.ini b/tox.ini index 9aecfc26..8b24d2f2 100644 --- a/tox.ini +++ b/tox.ini @@ -21,7 +21,11 @@ commands = {posargs} [testenv:cover] setenv = VIRTUAL_ENV={envdir} NOSE_WITH_COVERAGE=1 + NOSE_COVER_BRANCHES=1 NOSE_COVER_PACKAGE=swift3 + NOSE_COVER_HTML=1 + NOSE_COVER_HTML_DIR={toxinidir}/cover + NOSE_COVER_ERASE=1 [tox:jenkins] downloadcache = ~/cache/pip