2
0

Use flatware to parallelize CI specs (#30284)

This commit is contained in:
Matt Jankowski
2024-06-27 03:42:57 -04:00
committed by GitHub
parent ad53b0ab65
commit f6390c3326
5 changed files with 57 additions and 3 deletions

12
spec/flatware_helper.rb Normal file
View 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