With Rails and TestCase I can do rake test:all without touching db. Some time i need to test only one file and not the entire suite without touching db. How can i do the same thing but with single file?
Asked
Active
Viewed 1,122 times
1 Answers
1
If you are asking how to run single test file, then below is the answer
rake test TEST=path_to_test_file

usha
- 28,973
- 5
- 72
- 93
-
I need the same functionality but without recreate db. Like in rake test:all. In rails 4 you can test single file also without prefix TEST=. – Simonini Aug 19 '14 at 21:37