Use flatware to parallelize CI specs (#30284)
This commit is contained in:
parent
ad53b0ab65
commit
f6390c3326
5 changed files with 57 additions and 3 deletions
12
spec/flatware_helper.rb
Normal file
12
spec/flatware_helper.rb
Normal file
|
@ -0,0 +1,12 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
if defined?(Flatware)
|
||||
Flatware.configure do |config|
|
||||
config.after_fork do |test_env_number|
|
||||
unless ENV.fetch('DISABLE_SIMPLECOV', nil) == 'true'
|
||||
require 'simplecov'
|
||||
SimpleCov.at_fork.call(test_env_number) # Combines parallel coverage results
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue