Skip to content

Latest commit

 

History

History
190 lines (115 loc) · 6.86 KB

File metadata and controls

190 lines (115 loc) · 6.86 KB

Alternate coverage report formatters

The community around SimpleCov provides a whole bunch of alternate formatters beyond the bundled HTML and JSON formatters.

If you have built or found one that is missing here, please send a Pull Request for this document!

Terminal output

by Chetan Sarva

A simple console output formatter: a table of per-file coverage (branch coverage included) plus the missed lines, right in your terminal.

by Boris Staal

Prints a colored per-group coverage summary to the console at the end of a run.

by Lance Ivy

Prints actionable feedback straight to stdout: which of the files you touched are missing coverage, and where.

by Josh Frankel

Coverage feedback tuned for a test-driven workflow: reports on the file under test as you run its spec.

by Ben Cochez

Reports the coverage summary through TeamCity service messages so it shows up on the build page.

by Yosuke Kabuto

t_wada AA formatter for SimpleCov

by Michael Grosser

A formatter that prints the coverage of the file under test when you run a single test file.

by Taras Shpachenko

Single file coverage reports for SimpleCov.

HTML reports

by Chiefpansancolt

A TailwindCSS & TailwindUI Designed HTML formatter with clean and easy search of files with a tabular left Navigation.

by Chiefpansancolt

A Material Design HTML formatter that is clean and easy to read.

by Christoph Olszowka, Alan Ridlehoover, and Fito von Zastrow

An HTML formatter built to stay fast and navigable on large codebases.

by Toby Hsieh

A variant of simplecov-html that inlines its assets, producing a report that survives being passed around as a single CI artifact.

by Jon Rowe

Inline HTML formatter for SimpleCov.

by Christian Mayer

A PHPUnit-style HTML report, for those who came to Ruby from PHP and miss it.

Machine-readable formats for CI and tooling

by Jesse Bowes

A formatter that generates Cobertura XML, consumed by many CI services (GitLab merge-request coverage among them).

by fortissimo1997

lcov formatter for SimpleCov

by t-mario-y

LCOV formatter positioned as a successor to simplecov-lcov.

by Jan Grodowski

Warns about methods and blocks a git diff changed that lack test coverage. Its SimpleCov::Formatter::Undercover writes the report data for the separate undercover CLI to read, by default to the same coverage/coverage.json path the bundled formatters own, so whichever formatter runs last decides that file's shape. The bundled simplecov patch command answers the related per-line question (is the code this change touched covered?) without an extra gem.

by Vicent Llongo

JSON formatter for SimpleCov

by Coraline Ada Ehmke

A lightweight, summary-level JSON formatter.

by Mikael Henriksson

JSON formatter that serializes through Oj, for large projects where the standard JSON dump gets slow.

by Fernando Guillen

CSV formatter for SimpleCov

by Fernando Guillen

"The target of this formatter is to cheat on Hudson so I can use the Ruby metrics plugin with SimpleCov."

by William "Kina"

Generates the rcov.txt file that metric_fu expects.

by Mikko Kokkonen

Generates Clover XML for Atlassian tooling such as Bamboo.

by Alessandro Rodi

A Markdown summary, handy for pasting into pull requests and chat.

by Karol Bąk

Reports missed lines in a format for review tools like reviewdog, so coverage gaps surface as PR annotations.

by Vitalii Lazebnyi

Concise, deterministic Markdown coverage digests tailored for LLMs and autonomous agents.

Coverage badges

by Matt Hale

A formatter that generates a coverage badge for use in your project's readme using ImageMagick.

by Marc Grimme

A formatter that generates a small coverage badge for use in your project's readme using the SVG.

by Shim Won

Generates an SVG coverage badge locally, with no ImageMagick dependency.

by Nilton Vasques

Generates a shields.io-style SVG coverage badge.

by traels.it

A formatter that uploads your coverage to a server, that will then host a SVG badge of the score. No need to have the badge stored in repository.

Build your own

by Kevin Paulisse

Flexible formatter that generates the output from an ERB template — the quickest route to a custom format without writing a formatter class.