Skip to content

test(cli): kill the surviving mutants of the framework context #798

Description

@blafourcade

Problem

The framework mutation scope holds at its floor of 69 with 1235 surviving and 383 uncovered mutants of 5646, the largest hole in the tree: contexts/framework is 88 files, 38 % of src/, and a third of its mutants live. Every other context now sits between 85 and 97 after #795; a floor of 69 means a behaviour change in install, sync or restore can pass the suite.

Scope

  • Per use case, read the survivors in reports/mutation/framework/ and write the test each one names, red first against the mutation, then restore.
  • Prefer whole-structure assertions (toStrictEqual on the result, exact messages) over presence checks; a Set or Map never goes inside expect.objectContaining.
  • Raise the floor to the measured score minus two.
  • Survivors argued equivalent are listed in the PR with their line and reason.

Acceptance criteria

  • node scripts/run-mutation.mjs framework --force ≥ 85
  • Every new it shown red first, one line of evidence per test in the PR
  • No source change, or each one named and justified in the PR
  • Every gate green

Prior art in this repo

Out of scope

  • Splitting contexts/framework into install, sync, restore. A design question wanting a brainstorm; the tests written here should survive it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    Priority

    None yet

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions