50e1660f5b
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>
9 lines
198 B
Bash
Executable File
9 lines
198 B
Bash
Executable File
#!/bin/bash
|
|
|
|
cd $(dirname $0)/test/unit
|
|
nosetests -v --exe --with-coverage --cover-package gluster --cover-erase --cover-html --cover-branches $@
|
|
|
|
saved_status=$?
|
|
rm -f .coverage
|
|
exit $saved_status
|