Summary
SimpleCov is configured with a 67% minimum baseline and 80% target, but current coverage sits closer to the baseline. Closing this gap improves confidence in refactoring and catches regressions earlier.
Current Configuration
From spec/spec_helper.rb:
- Minimum coverage: 67% (baseline)
- Target coverage: 80%
- Branch coverage enabled
- LCOV formatter for undercover integration
Coverage Gaps to Investigate
Areas likely under-covered based on test file distribution:
- Admin controllers — 8 dashboard controllers with limited dedicated specs
- Mailers — no dedicated mailer specs observed
- View components — 16 components vs 12 component specs (some may lack coverage)
- Background jobs — edge cases in
ProcessHashListJob (196 lines) and UpdateStatusJob (200 lines)
- Model edge cases — complex state machine guard conditions may have untested paths
Acceptance Criteria
Notes
This is an ongoing effort, not a single PR. Consider raising the baseline by 3-5% per sprint until reaching the 80% target.
Summary
SimpleCov is configured with a 67% minimum baseline and 80% target, but current coverage sits closer to the baseline. Closing this gap improves confidence in refactoring and catches regressions earlier.
Current Configuration
From
spec/spec_helper.rb:Coverage Gaps to Investigate
Areas likely under-covered based on test file distribution:
ProcessHashListJob(196 lines) andUpdateStatusJob(200 lines)Acceptance Criteria
COVERAGE=true bundle exec rspecand identify modules below 80%Notes
This is an ongoing effort, not a single PR. Consider raising the baseline by 3-5% per sprint until reaching the 80% target.