Skip to content

Instantly share code, notes, and snippets.

@h3h
Created March 4, 2010 02:35
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 h3h/321336 to your computer and use it in GitHub Desktop.
Save h3h/321336 to your computer and use it in GitHub Desktop.
bash aliases for running test/spec tests
# test/spec test runner
function ts()
{
ruby $1 -r s 2>/dev/null | grep -v "^HelperTestCase" | grep -v "dummy (e"
}
# test/spec test runner (with test name)
function tsn()
{
ruby $1 -r s -n "/$2/" 2>/dev/null | grep -v "^HelperTestCase" | grep -v "dummy (e"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment