-
Notifications
You must be signed in to change notification settings - Fork 21.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make rails test
run rake test
#27088
Comments
|
cc @kaspth since you have more context on this |
Is there a document or blog post explaining why rails is moving away from rake? Everything not in the whitelist is a direct pass through to rake, so I don't really understand this.
Because developers expect to run |
In Rails 5 this is not true anymore All this information is present in the release notes and changelogs. Example: http://guides.rubyonrails.org/5_0_release_notes.html#test-runner. Right now it is not possible to extend the rails commands, so you are not able to add dependencies to the |
This is also going to change in Rails 5.1. We are not going to pass things to rake anymore. |
We're currently targeting 5.1 for that, yeah. But don't think we need to keep this issue open for that work. Thanks! |
Steps to reproduce
Modify the
test
rake task and then runrails test
.Expected behavior
I expect that
rails test
will just runrake test
.Actual behavior
rails test
only executesMinitest.run
.System configuration
Rails version: 5.0.0.1
Ruby version: 2.3.1-p112 (x86_64-darwin16)
Since the
test
task is already set up to run minitest, is there a reason that thetest
command is included inRails::CommandsTasks::COMMAND_WHITELIST
? I can send a PR to remove this from the whitelist if that's acceptable. This caused me to waste a lot of time trying to figure out why modifications to thetest
task didn't affectrails test
.The text was updated successfully, but these errors were encountered: