Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

35 lines (31 sloc) 0.982 kB
require "bundler/gem_tasks"
require "rake/testtask"
task :default => :test
Rake::TestTask.new do |t|
t.pattern = "test/unit/**/*_test.rb"
t.verbose = true
end
Rake::TestTask.new("test:gallery") do |t|
t.pattern = "test/gallery/**/*_test.rb"
t.verbose = true
end
# The RubyMine reporter must be tested separately inside of RubyMine, and hence
# is not run in the gallery. The JUnit reporter writes to `test/reports` instead
# of having meaningful output. The guard reporter requires Guard, and I'm not
# really all that intersted in setting it up for automated testing for such a
# simple reporter.
task :gallery do
[
"DefaultReporter",
"JUnitReporter",
"ProgressReporter",
"RubyMateReporter",
"SpecReporter"
].each do |reporter|
puts "Running gallery tests using #{reporter}..."
sh "rake test:gallery REPORTER=#{reporter}" do
# Ignore failures. They're expected when you are running the gallery
# test suite.
end
end
end
Jump to Line
Something went wrong with that request. Please try again.