diff options
author | kali <kali@leap.se> | 2012-08-08 18:20:05 +0900 |
---|---|---|
committer | kali <kali@leap.se> | 2012-08-08 18:20:05 +0900 |
commit | be1defea901e51c386beb056a649ff29925e6bb3 (patch) | |
tree | 2a19499bfd104fd66766fa77029abc2352c9939a /run_tests.sh | |
parent | 81e0e2bc82757425bebfb659e6c2cb873bc88ec9 (diff) |
minimal coverage config
still needing some love for the --include part in
the html report.
Diffstat (limited to 'run_tests.sh')
-rwxr-xr-x | run_tests.sh | 16 |
1 files changed, 10 insertions, 6 deletions
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 |