flatware_helper.rb 329 B

123456789101112
  1. # frozen_string_literal: true
  2. if defined?(Flatware)
  3. Flatware.configure do |config|
  4. config.after_fork do |test_env_number|
  5. unless ENV.fetch('DISABLE_SIMPLECOV', nil) == 'true'
  6. require 'simplecov'
  7. SimpleCov.at_fork.call(test_env_number) # Combines parallel coverage results
  8. end
  9. end
  10. end
  11. end