mirror of https://github.com/rails/rails
26 lines
490 B
Ruby
26 lines
490 B
Ruby
# frozen_string_literal: true
|
|
|
|
require "bundler/setup"
|
|
require "bundler/gem_tasks"
|
|
require "rake/testtask"
|
|
|
|
task :package
|
|
|
|
ENV["RAILS_MINITEST_PLUGIN"] = "true"
|
|
|
|
Rake::TestTask.new do |t|
|
|
t.libs << "test"
|
|
t.pattern = "test/**/*_test.rb"
|
|
t.verbose = true
|
|
end
|
|
|
|
namespace :test do
|
|
task :isolated do
|
|
FileList["test/**/*_test.rb"].exclude("test/dummy/**/*").all? do |file|
|
|
sh(Gem.ruby, "-w", "-Ilib", "-Itest", file)
|
|
end || raise("Failures")
|
|
end
|
|
end
|
|
|
|
task default: :test
|