Server IP : 92.204.138.22 / Your IP : 3.147.28.23 Web Server : Apache System : Linux ns1009439.ip-92-204-138.us 4.18.0-553.8.1.el8_10.x86_64 #1 SMP Tue Jul 2 07:26:33 EDT 2024 x86_64 User : internationaljou ( 1019) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/opt/cpanel/ea-ruby27/root/usr/local/share/gems/gems/irb-1.9.0/ |
Upload File : |
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", "test/irb/type_completion/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", "test/irb/type_completion/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