report: Build a source-annotated HTML report from a muttest JSON file

View source: R/report-html.R

reportR Documentation

Build a source-annotated HTML report from a muttest JSON file

Description

Reads a JSON file produced by JSONMutationReporter (the mutation-testing-elements schema) and renders a self-contained HTML report: overall score, per-file breakdown, and every mutant overlaid on its source line. Mutated lines expand to show each mutation as a diff. A small inline script adds status filtering (the report opens focused on survived mutants) and n/p keyboard navigation between mutated lines.

Usage

report(json = "muttest.json", output = sub("\\.json$", ".html", json))

Arguments

json

Path to the JSON file written by JSONMutationReporter.

output

Path of the HTML file to write. Defaults to the JSON path with an .html extension.

Details

The report is a single static file. Syntax highlighting is loaded from a CDN (shiki) when online and is skipped gracefully offline.

Value

The output path, invisibly.


muttest documentation built on July 21, 2026, 5:09 p.m.