Q: What is the rake command to run a single rails unit test?
A: There is none, use ruby test/unit/my_test.rb
|
|
Tweet |
|
Seattle Social Web Development
Q: What is the rake command to run a single rails unit test?
A: There is none, use ruby test/unit/my_test.rb
|
|
Tweet |
|
{ 2 comments… read them below or add one }
Not true, to invoke the rails environment, use:
rake test TEST=/path/to/test (i.e. rake test TEST=test/unit/accounts.rb)
in my rails 2.3.2 environment
rake test TEST=/path/to/test
runs the test three times
But
rake test:units TEST=/path/to/test
works fine.