We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e019177 commit f00acb8Copy full SHA for f00acb8
Rakefile
@@ -9,12 +9,19 @@ task default: %i[test rubocop]
9
begin
10
fork { nil }
11
rescue NotImplementedError
12
- # jruby and windows can't fork so use vanilla rake instead
+ # jruby, truffleruby, and windows can't fork so use vanilla rake instead
13
+ warn "warn: fork is not implemented on this Ruby, falling back to vanilla rake"
14
require 'rake/testtask'
15
+ Rake::TestTask.new do |t|
16
+ t.libs << "test"
17
+ t.test_files = FileList['test/test_*.rb']
18
+ t.verbose = true
19
+ end
20
else
21
desc 'Run each test in isolation'
22
task :test do
23
sh 'forking-test-runner test/test_* --helper test/helper.rb --verbose'
24
end
25
26
+
27
RuboCop::RakeTask.new
0 commit comments