diff options
authorPeter Portante <>2013-05-31 21:26:28 -0400
committerLuis Pabon <>2013-06-03 14:02:30 -0700
commit50e1660f5bfbb6714d2efcf1e58bd5d0b384b46d (patch)
parenta574805398d9bf28be6f357e26a2ba299a5b90e1 (diff)
Add branch coverage, HTML pages, verbosity
Running the unit tests outside of tox is useful since one can use the python debugger, pdb, to step through failing tests to find out what is wrong. Having it conveniently generate the coverage HTML reports avoids running tox just to get that data. We also add support for branch coverage, which will be highlighted in the HTML reports. Change-Id: Iccc7cd12efff8c136702638c8cb2fdca5d5d680b Signed-off-by: Peter Portante <> Reviewed-on: Reviewed-by: Luis Pabon <> Tested-by: Luis Pabon <>
2 files changed, 3 insertions, 2 deletions
diff --git a/tox.ini b/tox.ini
index 3e01066..f4799b2 100644
--- a/tox.ini
+++ b/tox.ini
@@ -13,7 +13,7 @@ deps =
changedir = {toxinidir}/test/unit
-commands = nosetests -v --exe --with-xunit --with-coverage --cover-package gluster --cover-erase --cover-xml --cover-html {posargs}
+commands = nosetests -v --exe --with-xunit --with-coverage --cover-package gluster --cover-erase --cover-xml --cover-html --cover-branches {posargs}
downloadcache = ~/cache/pip
diff --git a/ b/
index a02be77..4873c45 100755
--- a/
+++ b/
@@ -1,7 +1,8 @@
cd $(dirname $0)/test/unit
-nosetests --exe --with-coverage --cover-package gluster --cover-erase $@
+nosetests -v --exe --with-coverage --cover-package gluster --cover-erase --cover-html --cover-branches $@
rm -f .coverage
exit $saved_status