Skip to content
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

Adds a rails test:all rake task #39221

Merged
merged 2 commits into from May 11, 2020
Merged

Adds a rails test:all rake task #39221

merged 2 commits into from May 11, 2020

Conversation

codergeek121
Copy link
Contributor

This task runs all tests, including system tests.

Summary

Following this discussion I started to add this (new? 2a31ea5) rake task.

Other Information

I added a notice in the test guides for this new rake task, but maybe I should add why bin/rails test does not run all test per default. What do you think?

This task runs all tests, including system tests.
@@ -23,6 +23,12 @@ namespace :test do
# If used with Active Record, this task runs before the database schema is synchronized.
end

desc "Runs all tests, even system tests"
task all: "test:prepare" do
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we just make this task dependent on test and test:system?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, I think this is fine.

@@ -23,6 +23,12 @@ namespace :test do
# If used with Active Record, this task runs before the database schema is synchronized.
end

desc "Runs all tests, even system tests"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe just "run all tests, including system tests"?

@dhh dhh merged commit 9488712 into rails:master May 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants