Test oracle that determines if mutations are detected by the test suite. Compares test results between original and mutated code to identify killed mutants.

Constructors

Methods

  • Add a base test result to compare the mutants tests against. This should be a string containing the test result in the JUnit XML format.

    Parameters

    • baseTestResultXml: string

    Returns Promise<void>

  • Add an empty test result for a mutant that was not tested (e.g. compilation error). This is equivalent to the mutant being killed by the tests.

    Parameters

    Returns Promise<void>

  • Add a mutant test result to compare. This should be a string containing the test result in the JUnit XML format.

    Parameters

    Returns Promise<void>

  • Get the test result between the base and mutant test results. Returns a list of mutants that were killed by the tests.

    Returns MutationTestingResults