| report | R Documentation |
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.
report(json = "muttest.json", output = sub("\\.json$", ".html", json))
json |
Path to the JSON file written by JSONMutationReporter. |
output |
Path of the HTML file to write. Defaults to the JSON path with
an |
The report is a single static file. Syntax highlighting is loaded from a CDN (shiki) when online and is skipped gracefully offline.
The output path, invisibly.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.