1
0
Fork 1
mirror of https://github.com/mastodon/mastodon.git synced 2024-12-26 02:30:28 +00:00
mastodon/spec/flatware_helper.rb
2024-06-27 07:42:57 +00:00

13 lines
329 B
Ruby

# 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