From be1defea901e51c386beb056a649ff29925e6bb3 Mon Sep 17 00:00:00 2001 From: kali Date: Wed, 8 Aug 2012 18:20:05 +0900 Subject: minimal coverage config still needing some love for the --include part in the html report. --- run_tests.sh | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'run_tests.sh') diff --git a/run_tests.sh b/run_tests.sh index ca4faa14..9a28d2f0 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -121,17 +121,21 @@ fi run_tests -# NOTE(sirp): we only want to run pep8 when we're running the full-test suite, -# not when we're running tests individually. To handle this, we need to -# distinguish between options (noseopts), which begin with a '-', and -# arguments (noseargs). if [ -z "$noseargs" ]; then if [ $no_pep8 -eq 0 ]; then run_pep8 fi fi +function run_coverage { + # XXX not working? getting 3rd party modules + coverage_opts="--include `pwd`/src/leap/*,`pwd`/src/leap/eip/*" + ${wrapper} coverage html -d docs/covhtml -i $coverage_opts + echo "now point your browser at docs/covhtml/index.html" +} + if [ $coverage -eq 1 ]; then - echo "Generating coverage report in covhtml/" - ${wrapper} coverage html -d covhtml -i + echo "Generating coverage report in docs/covhtml/" + run_coverage + exit fi -- cgit v1.2.3