Skip to content

IReportedMutant

One mutant of a report, as far as a verdict reads it.

readonly file: string

The report’s key for the file: its path relative to the package Stryker ran in.


readonly lineAfter: string | null

The nearest non-blank line below that line, trimmed; empty at the end of the file.


readonly lineBefore: string | null

The nearest non-blank line above that line, trimmed; empty at the top of the file.


readonly lines: { end: number; start: number; } | null

1-based first and last line, or null when the report gives the mutant no location.


readonly mutatorName: string


readonly replacement: string | null

The code the mutant put in place of the original, when the report carries it.


readonly sourceLine: string | null

The text of the mutant’s first line in the report’s copy of the file, trimmed, when it has one.


readonly static: boolean

Runs once, when its module is imported: no single test covers it (ignoreStatic ignores these).


readonly status: TallyField


readonly statusReason: string | null

Stryker’s note on the status: why a mutant was ignored, which limit a timeout hit.


readonly testsCompleted: number | null