Skip to content

Commit 7ee34d9

Browse files
committed
Enable Rails minitest plugin in our rake tasks
1 parent fd6c266 commit 7ee34d9

File tree

13 files changed

+25
-1
lines changed

13 files changed

+25
-1
lines changed

actioncable/Rakefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ task default: :test
1010

1111
task :package
1212

13+
ENV["RAILS_MINITEST_PLUGIN"] = "true"
14+
1315
Rake::TestTask.new do |t|
1416
t.libs << "test"
1517
t.test_files = FileList["#{__dir__}/test/**/*_test.rb"]

actionmailbox/Rakefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ require "rake/testtask"
66

77
task :package
88

9+
ENV["RAILS_MINITEST_PLUGIN"] = "true"
10+
911
Rake::TestTask.new do |t|
1012
t.libs << "test"
1113
t.pattern = "test/**/*_test.rb"

actionmailer/Rakefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ task default: [ :test ]
77

88
task :package
99

10+
ENV["RAILS_MINITEST_PLUGIN"] = "true"
11+
1012
# Run the unit tests
1113
Rake::TestTask.new { |t|
1214
t.libs << "test"

actionpack/Rakefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ task default: :test
99

1010
task :package
1111

12+
ENV["RAILS_MINITEST_PLUGIN"] = "true"
13+
1214
# Run the unit tests
1315
Rake::TestTask.new do |t|
1416
t.libs << "test"

actiontext/Rakefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ require "rake/testtask"
66

77
task :package
88

9+
ENV["RAILS_MINITEST_PLUGIN"] = "true"
10+
911
Rake::TestTask.new do |t|
1012
t.libs << "test"
1113
t.test_files = FileList["test/**/*_test.rb"].exclude("test/system/**/*", "test/dummy/**/*")

actionview/Rakefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ task default: :test
1010

1111
task :package
1212

13+
ENV["RAILS_MINITEST_PLUGIN"] = "true"
14+
1315
# Run the unit tests
1416

1517
desc "Run all unit tests"

activejob/Rakefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ task test: "test:default"
1010

1111
task :package
1212

13+
ENV["RAILS_MINITEST_PLUGIN"] = "true"
14+
1315
namespace :test do
1416
desc "Run all adapter tests"
1517
task :default do

activemodel/Rakefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ task default: :test
66

77
task :package
88

9+
ENV["RAILS_MINITEST_PLUGIN"] = "true"
10+
911
Rake::TestTask.new do |t|
1012
t.libs << "test"
1113
t.test_files = FileList["#{__dir__}/test/cases/**/*_test.rb"]

activerecord/Rakefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ task default: :test
2323

2424
task :package
2525

26+
ENV["RAILS_MINITEST_PLUGIN"] = "true"
27+
2628
desc "Run mysql2, trilogy, sqlite, and postgresql tests"
2729
task :test do
2830
tasks = defined?(JRUBY_VERSION) ?

activestorage/Rakefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ require "bundler/setup"
44
require "bundler/gem_tasks"
55
require "rake/testtask"
66

7+
ENV["RAILS_MINITEST_PLUGIN"] = "true"
8+
79
Rake::TestTask.new do |t|
810
t.libs << "app/controllers"
911
t.libs << "test"

0 commit comments

Comments
 (0)