Skip to content

Fix truffleruby specs #654

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading