Sha256: c856796409aea329c8e14bd4825923ed580a86594730c0b027189731f9eaf700

Contents?: true

Size: 1.34 KB

Versions: 8

Compression:

Stored size: 1.34 KB

Contents

require "bundler/gem_tasks"
require "rake/testtask"
require "rdoc/task"

Rake::TestTask.new(:test) do |t|
  t.libs << "test" << "test/lib"
  t.libs << "lib"
  t.ruby_opts << "-rhelper"
  t.test_files = FileList["test/irb/**/test_*.rb"]
end

# To make sure they have been correctly setup for Ruby CI.
desc "Run each irb test file in isolation."
task :test_in_isolation do
  failed = false

  FileList["test/irb/**/test_*.rb"].each do |test_file|
    ENV["TEST"] = test_file
    begin
      Rake::Task["test"].execute
    rescue
      failed = true
      msg = "Test '#{test_file}' failed when being executed in isolation. Please make sure 'rake test TEST=#{test_file}' passes."
      separation_line = '=' * msg.length

      puts <<~MSG
        #{separation_line}
        #{msg}
        #{separation_line}
      MSG
    end
  end

  fail "Some tests failed when being executed in isolation" if failed
end

Rake::TestTask.new(:test_yamatanooroti) do |t|
  t.libs << 'test' << "test/lib"
  t.libs << 'lib'
  #t.loader = :direct
  t.ruby_opts << "-rhelper"
  t.pattern = 'test/irb/yamatanooroti/test_*.rb'
end

task :default => :test

RDoc::Task.new do |rdoc|
  rdoc.title = "IRB"
  rdoc.rdoc_files.include("*.md", "lib/**/*.rb")
  rdoc.rdoc_files.exclude("lib/irb/xmp.rb")
  rdoc.rdoc_dir = "docs"
  rdoc.main = "README.md"
  rdoc.options.push("--copy-files", "LICENSE.txt")
end

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/irb-1.14.0/Rakefile
irb-1.14.2 Rakefile
irb-1.14.1 Rakefile
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/irb-1.13.2/Rakefile
irb-1.14.0 Rakefile
irb-1.13.2 Rakefile
irb-1.13.1 Rakefile
irb-1.13.0 Rakefile