Skip to content

Instantly share code, notes, and snippets.

@ncuesta
Created March 27, 2014 11:55
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 ncuesta/9805955 to your computer and use it in GitHub Desktop.
Save ncuesta/9805955 to your computer and use it in GitHub Desktop.
Commands to run tests with/without code coverage
function rt {
_rt_run_rake $*
}
function crt {
export COVERAGE=true
_rt_run_rake $*
}
function _rt_cleanup {
unset TEST
unset COVERAGE
}
function _rt_run_rake {
[ $# -gt 0 ] && export TEST=$1
rake test $*
_rt_cleanup
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment