Defect #26504
closed
Should we move the tests to the new models, controllers... folders?
Jean-Philippe Lang wrote:
Should we move the tests to the new models, controllers... folders?
I don't know.
But Japanese document says
- rake test:units -> run in test/models test/helpers, and test/unit
- rake test:functionals -> run in test/controllers, test/mailers, and test/functional
Should we move the tests to the new models, controllers... folders?
I don't know either, but I wanted to help out by finding the cause of the documentation discrepancy.
I cannot find this part in English document .
It looks like the localized Japanese version of the Rails guide is out of date. This table appeared in the English 4.1 version but was removed from the English back on March 29th, 2015.
Maybe this overview of changes to testing in Rails 5 will be helpful too.
It appears that rake test
should now be bin/rails test
in Rails 5. I'm not a Rails developer, just wanted to do a little detective work to move this forward as a user looking forward to using Redmine 4 eventually!
- Target version deleted (
4.0.0)
Changes not required and would make merging test changes between branches less easy.
I have confirmed on r19683.
- "rake test:units" catches failures in test/unit and test/helpers
- "rake test:functionals" catches failures in test/functional
Also available in: Atom
PDF