# simple wrappers for running unit and functional tests in rails apps
# INSTEAD OF : ruby test/unit/user_test.rb
# DO THIS : test_unit user
test_unit () {
if [[ -n "$1" ]]; then
ruby test/unit/$1_test.rb;
else
"USAGE : test_unit [name_of_test]"
fi
}
# INSTEAD OF : ruby test/functional/users_controller_test.rb
# DO THIS : test_func user
test_func () {
if [[ -n "$1" ]]; then
ruby test/functional/$1_controller_test.rb;
else
"USAGE : test_func [name_of_test]"
fi
}
Bash functions for running rails unit and functional tests
Leave a Reply
You must be logged in to post a comment.