A JSON Schema defining the format for mutation testing reports, currently at version 3.8.0. It is part of the Stryker Mutator ecosystem and provides a standardized structure for representing mutation testing results, including mutants, tests, and coverage. This schema is used by mutation testing tools to ensure interoperability. The package ships TypeScript types for easy integration with TypeScript projects. It is released as part of the Stryker mutation-testing-elements monorepo, with a cadence aligned to Stryker releases. It offers a single, validated schema that can be consumed via JSON Schema validators like AJV or directly imported as a TypeScript module.
npm install mutation-testing-report-schemaNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Validates a mutation testing report JSON object against the schema using AJV.
Import { schema } and use it as data, e.g., with AJV's addSchema method.Check the 'MutationTestResult' type for required fields per version.
Migrate from 'mutatedLines' to 'location' with start/end line and column.
Use AJV or another JSON Schema validator: import Ajv; const ajv = new Ajv(); ajv.addSchema(schema, 'key'); ajv.validate('key', report);Run 'npm install mutation-testing-report-schema' and use correct import syntax: import { schema } from 'mutation-testing-report-schema';Add a 'schemaVersion' field (string) to your report object, e.g., '1.0'.
No dependency data recorded yet.