Skip to content

Instantly share code, notes, and snippets.

@elmirjagudin
Created March 28, 2013 17:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elmirjagudin/5265412 to your computer and use it in GitHub Desktop.
Save elmirjagudin/5265412 to your computer and use it in GitHub Desktop.
buildbot gen_cov.sh
#!/bin/sh
MODULES=$1
HTML_DIR=cov-part
if [ -z "$MODULES" ]; then
MODULES="buildbot.test buildslave.test"
HTML_DIR=cov
fi
coverage erase
#coverage run --branch --rcfile=common/coveragerc $(which trial) $MODULES
coverage run --rcfile=common/coveragerc $(which trial) $MODULES
rm -rf $HTML_DIR
coverage html -i --rcfile=.coveragerc -d $HTML_DIR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment