
Build a source-annotated HTML report from a muttest JSON file
report.RdReads 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
.htmlextension.
Details
The report is a single static file. Syntax highlighting is loaded from a CDN (shiki) when online and is skipped gracefully offline.