mutation-testing-report-schema

The json schema for a mutation testing report.

Usage no npm install needed!

<script type="module">
  import mutationTestingReportSchema from 'https://cdn.skypack.dev/mutation-testing-report-schema';
</script>

README

Build Status

Mutation testing elements schema

The json schema for mutation testing elements.

The schema can be found here.

JavaScript

Install it with npm like this:

$ npm i mutation-testing-report-schema

Use it from typescript or js (with babel)

import { schema } from 'mutation-testing-elements-schema';

For example, use AJV:

const schemaValidator = new Ajv();
schemaValidator.addSchema(schema, 'mutation-testing-report-schema');
schemaValidator.validate('mutation-testing-report-schema', {
  /*.. report as json ...*/
});

Other languages

Download the schema using https://www.unpkg.com/mutation-testing-report-schema@VERSION/dist/src/mutation-testing-report-schema.json

For the current version, see package.json.