@overkill-dev/stryker-runner 0.0.13 → 0.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/package.json +2 -2
  2. package/packages/stryker-runner/campaign-client.js +2 -2
  3. package/packages/stryker-runner/campaign-client.js.map +1 -1
  4. package/packages/stryker-runner/campaign-protocol.js +4 -3
  5. package/packages/stryker-runner/campaign-protocol.js.map +1 -1
  6. package/packages/stryker-runner/campaign-receiver.js +2 -2
  7. package/packages/stryker-runner/campaign-receiver.js.map +1 -1
  8. package/packages/stryker-runner/campaign-worker.js +1 -4
  9. package/packages/stryker-runner/campaign-worker.js.map +1 -1
  10. package/packages/stryker-runner/dry-run-results.js +97 -0
  11. package/packages/stryker-runner/dry-run-results.js.map +1 -0
  12. package/packages/stryker-runner/mutation-baseline.js +16 -6
  13. package/packages/stryker-runner/mutation-baseline.js.map +1 -1
  14. package/packages/stryker-runner/mutation-catalog.js +69 -7
  15. package/packages/stryker-runner/mutation-catalog.js.map +1 -1
  16. package/packages/stryker-runner/mutation-lifecycle.js +69 -27
  17. package/packages/stryker-runner/mutation-lifecycle.js.map +1 -1
  18. package/packages/stryker-runner/mutation-observation.js +63 -23
  19. package/packages/stryker-runner/mutation-observation.js.map +1 -1
  20. package/packages/stryker-runner/mutation-results.js +12 -72
  21. package/packages/stryker-runner/mutation-results.js.map +1 -1
  22. package/packages/stryker-runner/mutation-runner-invocations.js +47 -26
  23. package/packages/stryker-runner/mutation-runner-invocations.js.map +1 -1
  24. package/packages/stryker-runner/mutation-selection.js +28 -25
  25. package/packages/stryker-runner/mutation-selection.js.map +1 -1
  26. package/readme.md +50 -6
  27. package/software-bill-of-materials.cyclonedx.json +9 -9
package/readme.md CHANGED
@@ -115,12 +115,56 @@ supervised children belong to that main process. Worker disconnects cancel
115
115
  their execution and reap the children. The receiver uses Stryker `10.0.0`'s
116
116
  worker marker and generated schema defaults; its sockets do not keep Node alive.
117
117
 
118
- Test IDs use structural work identities and project-relative paths. Every fresh
119
- collection validates the complete eligible catalog, selection metadata, and
120
- intentional skips before narrowing. Unknown IDs, catalog drift, unexpected
121
- skips, and empty mutant filters return `Error`. The adapter expands Stryker's
122
- sandbox file filters and preserves static activation for its static-mutant
123
- planner path unless `ignoreStatic` requests runtime execution.
118
+ Test IDs encode the complete structured work identity, including parameter keys
119
+ and distinct resource-free runtime variants. Authored suite and case titles
120
+ remain identity components, with suite segments kept separate. Rendered names
121
+ and source line or column positions do not determine IDs.
122
+ File origins use project-relative paths with forward slashes. Absolute sandbox
123
+ paths, dot segments, and separator aliases normalize to the same origin;
124
+ origins outside the sandbox or naming its root fail. Existing canonical IDs
125
+ retain their encoding. Regenerate cached Stryker reports if they contain IDs
126
+ derived from noncanonical path spellings.
127
+
128
+ Every invocation validates the complete eligible catalog, selection metadata,
129
+ and intentional skips before narrowing. Reused execution validates its retained
130
+ plan without reimporting modules. Unknown or duplicate IDs, catalog drift,
131
+ unexpected skips, and empty mutant filters return `Error`. The adapter expands
132
+ Stryker's sandbox file filters. The baseline retains the original file restriction,
133
+ including eligible files that initially contain no cases. Later cases in those
134
+ files are catalog drift when execution collects again.
135
+
136
+ Repeated dry runs validate the original file restriction, coverage mode, and
137
+ catalog before case execution. They cannot replace the original campaign
138
+ baseline. Intentional skips remain in dry-run results; a mutant selection with
139
+ no runnable cases after coverage fallback executes nothing and returns `Error`.
140
+
141
+ Dry-run results report stable IDs, durations in milliseconds, successes,
142
+ failures, and intentional skips. Assertion, body, and test-contract failures
143
+ remain individual failed tests. Cleanup failures return `Error`, preserving
144
+ affected IDs and complete case failure lists alongside runner diagnostics,
145
+ and do not publish a baseline. Timeouts return `Timeout`. Stryker aborts these
146
+ invocations before mutation execution and produces no mutation score.
147
+
148
+ Set Stryker's `coverageAnalysis` to `perTest` (the normal optimized mode), `all`,
149
+ or `off`. `perTest` returns Stryker's case counters and narrows execution only
150
+ when the requested cases include every recorded covering case. `all` returns
151
+ aggregate mutant counts and selects the full eligible suite. `off` omits mutant
152
+ coverage and also selects the full eligible suite. Ordinary V8 coverage remains
153
+ disabled in every mode.
154
+
155
+ Static coverage or uncertain attribution widens valid filters to the complete
156
+ dry-run catalog, preserving its original file restrictions. The adapter never
157
+ infers `NoCoverage`. Missing or malformed counter transport, incomplete
158
+ test results, unknown IDs, duplicate IDs, and explicit-empty filters return
159
+ `Error`. A test that touches no instrumented code needs no counter bucket.
160
+ Stryker can still classify genuinely uncovered mutants from complete coverage.
161
+
162
+ Stryker's explicit `ignoreStatic` setting retains its runtime-only behavior for
163
+ hybrid mutants and its own handling of static mutants. Otherwise recorded
164
+ import-time hits require static activation before user imports. Existing reload
165
+ checks reject a loaded graph that cannot perform that activation safely.
166
+ Fallback keeps Stryker's deadline and bail policy. The dry-run coverage mode is
167
+ fixed with the campaign baseline and retained across worker replacements.
124
168
 
125
169
  Counters retain their object identity across reused invocations. Test attribution
126
170
  includes awaited cleanup. Infrastructure errors take precedence over timeouts
@@ -16,24 +16,24 @@
16
16
  "component": {
17
17
  "type": "library",
18
18
  "name": "@overkill-dev/stryker-runner",
19
- "version": "0.0.13",
20
- "bom-ref": "pkg:npm/@overkill-dev/stryker-runner@0.0.13",
21
- "purl": "pkg:npm/@overkill-dev/stryker-runner@0.0.13"
19
+ "version": "0.0.15",
20
+ "bom-ref": "pkg:npm/@overkill-dev/stryker-runner@0.0.15",
21
+ "purl": "pkg:npm/@overkill-dev/stryker-runner@0.0.15"
22
22
  }
23
23
  },
24
24
  "components": [
25
25
  {
26
26
  "type": "library",
27
27
  "name": "@overkill-dev/run",
28
- "version": "0.0.78",
29
- "bom-ref": "pkg:npm/@overkill-dev/run@0.0.78",
28
+ "version": "0.0.79",
29
+ "bom-ref": "pkg:npm/@overkill-dev/run@0.0.79",
30
30
  "scope": "optional",
31
31
  "licenses": [
32
32
  {
33
33
  "expression": "MIT"
34
34
  }
35
35
  ],
36
- "purl": "pkg:npm/@overkill-dev/run@0.0.78"
36
+ "purl": "pkg:npm/@overkill-dev/run@0.0.79"
37
37
  },
38
38
  {
39
39
  "type": "library",
@@ -77,12 +77,12 @@
77
77
  ],
78
78
  "dependencies": [
79
79
  {
80
- "ref": "pkg:npm/@overkill-dev/run@0.0.78"
80
+ "ref": "pkg:npm/@overkill-dev/run@0.0.79"
81
81
  },
82
82
  {
83
- "ref": "pkg:npm/@overkill-dev/stryker-runner@0.0.13",
83
+ "ref": "pkg:npm/@overkill-dev/stryker-runner@0.0.15",
84
84
  "dependsOn": [
85
- "pkg:npm/@overkill-dev/run@0.0.78",
85
+ "pkg:npm/@overkill-dev/run@0.0.79",
86
86
  "pkg:npm/@schema-hub/zod-error-formatter@0.0.19",
87
87
  "pkg:npm/@stryker-mutator/api@10.0.0",
88
88
  "pkg:npm/zod@4.6.7"