gitwtfhub

wtf is scalac-scoverage-plugin?

jiminhsieh/scalac-scoverage-plugin — explained in plain English

Analysis updated 2026-08-07 · repo last pushed 2019-06-13

ScalaAudience · developerComplexity · 3/5DormantSetup · moderate

TL;DR

A free Scala tool that measures how much of your code is actually tested by tracking individual statements and branches, then generates HTML reports showing covered and uncovered code in green and red.

Mindmap

mindmap
  root((repo))
    What it does
      Tracks statement coverage
      Highlights covered code
      Shows branch coverage
    How it works
      Hooks into Scala compiler
      Watches code during tests
      Counts statements not lines
    Tech stack
      Scala
      sbt
      Maven
      Gradle
    Use cases
      Find untested code paths
      Verify age-branch logic
      Keep tests honest
    Audience
      Scala developers
      QA engineers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Find untested code paths in your Scala application before shipping.

REASON 2

Verify that your tests cover every branch in functions with if/else conditions.

REASON 3

Generate HTML reports showing which code is covered green and uncovered red.

REASON 4

Exclude specific packages or code sections from coverage measurement using special comments.

What's in the stack?

ScalasbtMavenGradle

How it stacks up

jiminhsieh/scalac-scoverage-plugincakiki/databasejanikdotzel/akka-http-quickstart-scala
LanguageScalaScalaScala
Last pushed2019-06-132026-03-132023-05-19
MaintenanceDormantMaintainedDormant
Setup difficultymoderateeasyeasy
Complexity3/52/52/5
Audiencedeveloperresearcherdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · moderate Time to first run · 30min

Requires a Scala build tool like sbt, Maven, or Gradle to wire the plugin into your project, you don't use it directly.

Free and open-source tool for measuring Scala code test coverage, license details are not specified in the provided explanation.

Wtf does this do

scalac-scoverage-plugin is a free tool that helps Scala developers see how much of their code is actually tested. It generates detailed reports showing which statements and branches (the different paths code can take, like if/else conditions) were executed during test runs, and which were skipped. When tests run, the tool watches which lines of code get triggered and which don't, then produces an HTML report that highlights covered code in green and uncovered code in red. What makes this approach different is its focus on statement coverage rather than line coverage. Because Scala lets you pack multiple statements onto a single line, traditional line-by-line metrics can be misleading. A single line might contain a branch, and if your test only exercises one path, you'd see 100% line coverage while actually missing half the logic. By counting individual statements, it gives a more accurate picture of what's genuinely tested. A team building a Scala application would use this to keep their test suite honest. For example, if you have an age-check function that returns different messages depending on the user's age, the tool shows whether your tests actually try every age bracket. If half the branches are never hit, you know your tests have gaps before you ship. This repository is the core engine, a plugin that hooks into the Scala compiler. In practice, you wouldn't use this directly, instead, you'd add it through build tools like sbt, Maven, or Gradle, which wire it into your project automatically. You can also exclude specific packages or mark sections of code with special comments to skip coverage measurement on things you don't want counted.

Yoink these prompts

Prompt 1
Set up scalac-scoverage-plugin in my sbt Scala project so that running tests generates an HTML coverage report showing covered and uncovered statements.
Prompt 2
I have a Scala function with multiple if/else branches. Use scalac-scoverage-plugin to show me which branches my tests are missing and generate a report.
Prompt 3
Configure scalac-scoverage-plugin to exclude a specific package from coverage measurement so it doesn't count my generated code.
Prompt 4
Integrate scalac-scoverage-plugin with my Gradle Scala build so that every test run produces a statement coverage report.
Prompt 5
Write Scala tests that achieve high branch coverage for my age-check function, then use scalac-scoverage-plugin to verify every age bracket is tested.

Frequently asked questions

wtf is scalac-scoverage-plugin?

A free Scala tool that measures how much of your code is actually tested by tracking individual statements and branches, then generates HTML reports showing covered and uncovered code in green and red.

What language is scalac-scoverage-plugin written in?

Mainly Scala. The stack also includes Scala, sbt, Maven.

Is scalac-scoverage-plugin actively maintained?

Dormant — no commits in 2+ years (last push 2019-06-13).

What license does scalac-scoverage-plugin use?

Free and open-source tool for measuring Scala code test coverage, license details are not specified in the provided explanation.

How hard is scalac-scoverage-plugin to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is scalac-scoverage-plugin for?

Mainly developer.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.