Sha256: 2eeeb6812d2221ae1f0ab653c46e5edff5f36610a8ab6d11b669593e0dd405b8

Contents?: true

Size: 1.3 KB

Versions: 7

Compression:

Stored size: 1.3 KB

Contents

require "bundler/gem_tasks"
require "rake/testtask"

task :default => :test
Rake::TestTask.new do |t|
  t.pattern = "test/{unit,integration}/**/*_test.rb"
  t.verbose = true
end

rubymine_home = [
  ENV["RUBYMINE_HOME"],
  "../rubymine-contrib/ruby-testing/src/rb/testing/patch/common",
  "/Applications/RubyMine.app/rb/testing/patch/common",
].compact.detect { |d| Dir.exist?(d) }

Rake::TestTask.new("test:gallery") do |t|
  t.pattern = "test/gallery/**/*_test.rb"
  t.verbose = true
  t.libs << rubymine_home
end

# - RubyMineReporter must be tested separately inside of RubyMine
# - JUnitReporter normally writes to `test/reports` instead of stdout
task :gallery do
  unless rubymine_home
    warn "To see RubyMineReporter supply RUBYMINE_HOME= or git clone git://git.jetbrains.org/idea/contrib.git ../rubymine-contrib"
    exit 1
  end

  [
    "DefaultReporter",
    "JUnitReporter",
    "ProgressReporter",
    "RubyMateReporter",
    "SpecReporter",
    "RubyMineReporter"
  ].each do |reporter|
    puts
    puts "-" * 72
    puts "Running gallery tests using #{reporter}..."
    puts "-" * 72
    puts

    sh "rake test:gallery REPORTER=#{reporter}" do
      # Ignore failures. They're expected when you are running the gallery
      # test suite.
    end
    sh "cat test/reports/*" if reporter == "JUnitReporter"
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
minitest-reporters-1.0.3 Rakefile
minitest-reporters-1.0.2 Rakefile
minitest-reporters-1.0.1 Rakefile
minitest-reporters-1.0.0 Rakefile
minitest-reporters-1.0.0.beta3 Rakefile
minitest-reporters-1.0.0.beta2 Rakefile
minitest-reporters-1.0.0.beta1 Rakefile