Sha256: ea22895b166228d0003de9c94be771f92548f53c1d250be56770dfb32c803442
Contents?: true
Size: 1.09 KB
Versions: 4
Compression:
Stored size: 1.09 KB
Contents
require "bundler/gem_tasks" require "rake/testtask" 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 => e 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
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
irb-1.11.1 | Rakefile |
irb-1.11.0 | Rakefile |
irb-1.10.1 | Rakefile |
irb-1.10.0 | Rakefile |