When I want to run all my unit tests, I run the rake: units test. To run all my functional tests, I run rake test: functionals. If I want to run all test cases in a single file, I ran
ruby test / unit / username_test.rb
Several people told me that I should use rake, for example
rake test: units TEST = test / unit / username_test.rb
To run the tests, they say that I should always use rake. I know that I should use rake if I test all my unit tests. But what if it is only one file or one specific testing method in the file that I am testing? Should I use a rake? Is there a difference between the two? Do I get any benefit from running a ruby โโrake? Is there a drawback in working with a ruby, and not with a rake?
ruby-on-rails unit-testing testing
Max
source share