Scoverage: Test Coverage for the Scala Codebases
summary
Scoverage is a Scala 3 compiler feature that rewrites typed trees and inserts tracking probes behind a simple compiler flag to produce coverage metadata and an HTML report (visualizer repo is ~27 lines). Implementation lifts expressions to preserve evaluation order, exempts erased vals and large methods via a JVM-bytecode-size heuristic, and runs across 13 compiler test groups — 7,828 tests, 99.55% pass rate with ~35 exclusions. Ongoing work targets moving the phase later to reduce feature interactions.
AI-written summary · about
