Skip to content

Commit

Permalink
replace removed SubTestTask with Rake::TestTask. Closes #33
Browse files Browse the repository at this point in the history
  • Loading branch information
senny committed Feb 17, 2016
1 parent 4faa9b5 commit 8f8d844
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/rails/perftest/railties/testing.tasks
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
require 'rails/test_unit/sub_test_task' # for SubTestTask in case rails app doesn't require "rails/test_unit/railtie"
require 'rake/testtask'

namespace :test do
task 'perftest:benchmark_mode' do
ENV["BENCHMARK_TESTS"] = '1'
end

Rails::SubTestTask.new(benchmark: ['test:prepare', 'test:perftest:benchmark_mode']) do |t|
Rake::TestTask.new(benchmark: ['test:prepare', 'test:perftest:benchmark_mode']) do |t|
t.libs << 'test'
t.pattern = 'test/performance/**/*_test.rb'
end

Rails::SubTestTask.new(profile: 'test:prepare') do |t|
Rake::TestTask.new(profile: 'test:prepare') do |t|
t.libs << 'test'
t.pattern = 'test/performance/**/*_test.rb'
end
Expand Down

0 comments on commit 8f8d844

Please sign in to comment.