Module: Glib::Test::ParallelCoverage
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/glib/test/parallel_coverage.rb
Overview
ParallelCoverage configures Rails parallel testing to work properly with SimpleCov.
Without this configuration, SimpleCov reports inaccurate coverage (often very low, like 1-2%) when running tests with parallelization enabled, because it only captures data from one worker instead of merging results from all parallel workers.
Usage:
class ActiveSupport::TestCase
include Glib::Test::ParallelCoverage
end
This will:
-
Enable parallel test execution using all available processors
-
Configure SimpleCov to track each worker separately
-
Automatically merge coverage results from all workers