From 29de4f440b0253446849fdf3b2470bd2b5421d64 Mon Sep 17 00:00:00 2001 From: Jason Frey Date: Tue, 11 Mar 2025 17:33:15 -0400 Subject: [PATCH] Fix truffleruby specs --- Rakefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 59067f90..10c3076e 100644 --- a/Rakefile +++ b/Rakefile @@ -9,12 +9,19 @@ task default: %i[test rubocop] begin fork { nil } rescue NotImplementedError - # jruby and windows can't fork so use vanilla rake instead + # jruby, truffleruby, and windows can't fork so use vanilla rake instead + warn 'warn: fork is not implemented on this Ruby, falling back to vanilla rake' require 'rake/testtask' + Rake::TestTask.new do |t| + t.libs << 'test' + t.test_files = FileList['test/test_*.rb'] + t.verbose = true + end else desc 'Run each test in isolation' task :test do sh 'forking-test-runner test/test_* --helper test/helper.rb --verbose' end end + RuboCop::RakeTask.new