-
-
Save ncuesta/9805955 to your computer and use it in GitHub Desktop.
Commands to run tests with/without code coverage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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