2
2
mirror of https://github.com/mastodon/mastodon synced 2025-04-09 00:05:48 +02:00
mastodon/spec/flatware_helper.rb

13 lines
308 B
Ruby

# frozen_string_literal: true
if defined?(Flatware)
Flatware.configure do |config|
config.after_fork do |test_env_number|
if ENV.fetch('COVERAGE', false)
require 'simplecov'
SimpleCov.at_fork.call(test_env_number) # Combines parallel coverage results
end
end
end
end