diff options
author | Peter Portante <peter.portante@redhat.com> | 2013-05-31 21:26:28 -0400 |
---|---|---|
committer | Luis Pabon <lpabon@redhat.com> | 2013-06-03 14:02:30 -0700 |
commit | 50e1660f5bfbb6714d2efcf1e58bd5d0b384b46d (patch) | |
tree | c4210398bbdf2732435a6e72f24c05008f455a42 /unittests.sh | |
parent | a574805398d9bf28be6f357e26a2ba299a5b90e1 (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 <peter.portante@redhat.com>
Reviewed-on: http://review.gluster.org/5134
Reviewed-by: Luis Pabon <lpabon@redhat.com>
Tested-by: Luis Pabon <lpabon@redhat.com>
Diffstat (limited to 'unittests.sh')
-rwxr-xr-x | unittests.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/unittests.sh b/unittests.sh index a02be77..4873c45 100755 --- a/unittests.sh +++ b/unittests.sh @@ -1,7 +1,8 @@ #!/bin/bash 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 $@ + saved_status=$? rm -f .coverage exit $saved_status |