# Hardening Scoverage Support in Scala 3

DevFeed: [Hardening Scoverage Support in Scala 3](<https://devfeed.tech/articles/hardening-scoverage-support-in-scala-3-43559.md>)

Original publisher: [Read original article](<https://www.scala-lang.org/blog/2026/03/11/scoverage.html>)

Published: 2026-03-10T23:00:00Z

Content type: article

Language: en

Sources: [The Scala Programming Language](<https://devfeed.tech/sources/the-scala-programming-language.md>)

Topics: [Scala](<https://devfeed.tech/topics/scala.md>), [test-coverage](<https://devfeed.tech/topics/test-coverage.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [Continuous integration](<https://devfeed.tech/topics/continuous-integration.md>), [Compiler](<https://devfeed.tech/topics/compiler.md>), [Instrumentation](<https://devfeed.tech/topics/instrumentation.md>)

Tags: [2026](<https://devfeed.tech/tags/2026.md>), [ci](<https://devfeed.tech/tags/ci.md>), [code-coverage](<https://devfeed.tech/tags/code-coverage.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [instrumentation](<https://devfeed.tech/tags/instrumentation.md>), [reliability](<https://devfeed.tech/tags/reliability.md>), [scala](<https://devfeed.tech/tags/scala.md>), [scala-3](<https://devfeed.tech/tags/scala-3.md>), [testing](<https://devfeed.tech/tags/testing.md>)

## AI overview

The Scala Center reports progress hardening Scoverage, Scala's code coverage tool, for Scala 3. The work expands testing across compiler language features and the compiler's CI test suite, identifying and addressing compatibility and reliability issues.

## Source excerpt

This post covers work done under the Sovereign Tech Fund investment umbrella: Scoverage hardening. The work is coordinated by the Scala Center. Summary Code coverage is a key part of maintaining high-quality Scala projects. We've recently made progress on making Scoverage more robust for Scala 3, expanding the way we test it and discovering and fixing new issues. Background Measuring how much of your Scala code is exercised by tests sounds simple until you try to do it yourself. That's where code coverage tools come in. Code coverage is not optional for many organizations. As one of the QA metrics, coverage helps ensure reliability of the solution which is especially important in regulated sectors. Scoverage is the standard coverage tool for Scala, built directly into the Scala 3 compiler as a dedicated phase. A crucial requirement for Scoverage's wide industry adoption is that Scoverage itself is reliable and well-tested. The tool is already tested via its own dedicated test suite - however, that is not enough. Most tricky bugs happen not in isolation but at intersections of language features. Therefore, Scoverage needs to be tested in interaction with all of the language features to be truly considered reliable. Furthermore, all future changes to the compiler should be tested in interaction with Scoverage to ensure the tool remains compatible with the compiler. To guarantee such a level of reliability, we have recently started a systematic rework of the testing strategy for Scoverage. This article reports on the progress we've made in 2026 so far. Enabling coverage on the compiler test suite The first step was mapping out the current failures of Scoverage in interaction with other language features. The strategy for that was to enable Scoverage on the existing compiler test suite. This means, in addition to the usual CI run of the tests that we do for each new PR, now we run the same tests again, but with Scoverage enabled. Under this mode, for each test we verify