Skip to content

Instantly share code, notes, and snippets.

@putermancer
Created April 7, 2011 21:59
Show Gist options
  • Save putermancer/908842 to your computer and use it in GitHub Desktop.
Save putermancer/908842 to your computer and use it in GitHub Desktop.
one-liner jscoverage command, excluding test scripts
for y in 1; do TMPVAR__=; for x in `find ${DIRNAME} -name "tests" -type d`; do TMPVAR__+="--no-instrument=`echo $x | awk -F${DIRNAME}/ '{print $2}'` "; done; jscoverage ${DIRNAME} ${DIRNAME}_coverage $TMPVAR__; TMPVAR__=; done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment