Skip to contents

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.

Value

The output path, invisibly.

Details

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