Skip to content

Commit f663132

Browse files
committed
Remove deprecated test:all and test:all:db tasks
1 parent c564dcb commit f663132

File tree

2 files changed

+2
-23
lines changed

2 files changed

+2
-23
lines changed

railties/CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
* Remove deprecated `test:all` and `test:all:db` tasks.
2+
13
* Remove deprecated `Rails::Rack::LogTailer`.
24

35
*Rafael Mendonça França*

railties/lib/rails/test_unit/testing.rake

-23
Original file line numberDiff line numberDiff line change
@@ -21,29 +21,6 @@ namespace :test do
2121
desc "Run tests quickly, but also reset db"
2222
task :db => %w[db:test:prepare test]
2323

24-
desc "Run tests quickly by merging all types and not resetting db"
25-
Rails::TestTask.new(:all) do |t|
26-
t.pattern = "test/**/*_test.rb"
27-
end
28-
29-
Rake::Task["test:all"].enhance do
30-
Rake::Task["test:deprecate_all"].invoke
31-
end
32-
33-
task :deprecate_all do
34-
ActiveSupport::Deprecation.warn "rake test:all is deprecated and will be removed in Rails 5. " \
35-
"Use rake test to run all tests in test directory."
36-
end
37-
38-
namespace :all do
39-
desc "Run tests quickly, but also reset db"
40-
task :db => %w[db:test:prepare test:all]
41-
42-
Rake::Task["test:all:db"].enhance do
43-
Rake::Task["test:deprecate_all"].invoke
44-
end
45-
end
46-
4724
Rails::TestTask.new(single: "test:prepare")
4825

4926
["models", "helpers", "controllers", "mailers", "integration", "jobs"].each do |name|

0 commit comments

Comments
 (0)