Repository navigation
v0.3.0
Added
--include-test-changesextends--sinceto code covered or imported by added, edited or removed tests. Reports include the tests that selected each mutant, and unresolved findings remain visible when the same diff is checked again.--shared-cachereuses validated snapshots across Git worktrees, separated by package, source scope and environment.- JSON and agent reports expose severity-tagged
findings,selectionReasons,testChangesandcomparison. Detection-regression findings identify unchanged code that tests detected before but no longer detect; an unavailable previous snapshot is reported explicitly. --kill-matrixincludes anobservationsrecord for every collected test:detected,noKills,notReachedorincomplete. New tests with no kills and tests whose detection power was not measured are reported separately.- The opt-in
numericMutationsplugin addsMathRoundingandNumericConstantmutants for rounding methods and explicitly configured constants, including negative values. Custom mutator factories can setcacheKeyto invalidate results when captured configuration changes.
Changed
- Type-check verdicts, including
CompileErrorand equivalence decisions, are cached against the source and compiler inputs. Unchanged reruns skip the checker; declaration, configuration, resolution and file-discovery changes invalidate the cache. The exportedTypeCheckercontract now exposes these inputs. - Each include/exclude scope keeps its own snapshot under
.mutator/scopes/, so alternating between scopes preserves their results..mutator/snapshot.jsoncontinues to contain the latest run for existing scripts. - The snapshot version is bumped: the first run after upgrading rebuilds incompatible cached results.
Fixed
- Directory-existence probes track existence separately from entry listings, so parallel work in sibling projects no longer invalidates an unchanged project's type-check results.
- Changes to enclosing workspace manifests and lockfiles invalidate package caches in pnpm/npm monorepos. Workspace discovery stops at the repository boundary.
- Unresolved regressions caused by removed killing tests remain reported on subsequent
--sinceruns instead of disappearing after the first recheck. - Incomplete kill matrices no longer establish that a test detects nothing or is subsumed by another test. Early exits, timeouts and pending work are distinguished from complete measurements.
- Snapshot writes and updates to the latest-run snapshot are atomic, preventing readers from observing partially written JSON.
These changes incorporate feedback from mizchi/mutator を入れてみた (#18).