Skip to content

Mutation range inconsistent with mutation-testing-schema? #11

Closed
@Aimless321

Description

@Aimless321

I have been locally running MSP using stryker-js (stryker-mutator/stryker-js#5086).
While testing I noticed that it's currently not working if i pass the a result from discover into mutationTest.

For example turning this mutant:

{
  "files": {
    "src/utils/file-utils.ts": {
      "language": "typescript",
      "source": "some code",
      "mutants": [
        {
          "id": "2",
          "location": {
            "start": {
              "line": 8,
              "column": 32
            },
            "end": {
              "line": 8,
              "column": 64
            }
          },
          "mutatorName": "ObjectLiteral",
          "replacement": "{}",
        }
      ]
    }
  }
}

Into src/utils/file-utils.ts:8:32-8:64 and passing it to mutationTest doesn't test any mutants.

Could this be caused by the mutation-testing-schema location to have an exclusive end, and the MSP an inclusive?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions