@overkill-dev/stryker-runner 0.0.14 → 0.0.16

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 (33) hide show
  1. package/package.json +2 -2
  2. package/packages/stryker-runner/campaign-protocol.js +2 -2
  3. package/packages/stryker-runner/campaign-protocol.js.map +1 -1
  4. package/packages/stryker-runner/campaign-worker.js +1 -4
  5. package/packages/stryker-runner/campaign-worker.js.map +1 -1
  6. package/packages/stryker-runner/dry-run-results.js +97 -0
  7. package/packages/stryker-runner/dry-run-results.js.map +1 -0
  8. package/packages/stryker-runner/mutation-baseline.js +8 -5
  9. package/packages/stryker-runner/mutation-baseline.js.map +1 -1
  10. package/packages/stryker-runner/mutation-case-classification.js +98 -0
  11. package/packages/stryker-runner/mutation-case-classification.js.map +1 -0
  12. package/packages/stryker-runner/mutation-catalog.js +64 -7
  13. package/packages/stryker-runner/mutation-catalog.js.map +1 -1
  14. package/packages/stryker-runner/mutation-diagnostics.js +46 -0
  15. package/packages/stryker-runner/mutation-diagnostics.js.map +1 -0
  16. package/packages/stryker-runner/mutation-interrupted-result.js +95 -0
  17. package/packages/stryker-runner/mutation-interrupted-result.js.map +1 -0
  18. package/packages/stryker-runner/mutation-lifecycle.js +74 -28
  19. package/packages/stryker-runner/mutation-lifecycle.js.map +1 -1
  20. package/packages/stryker-runner/mutation-observation.js +84 -16
  21. package/packages/stryker-runner/mutation-observation.js.map +1 -1
  22. package/packages/stryker-runner/mutation-results.js +122 -183
  23. package/packages/stryker-runner/mutation-results.js.map +1 -1
  24. package/packages/stryker-runner/mutation-runner-invocations.js +45 -17
  25. package/packages/stryker-runner/mutation-runner-invocations.js.map +1 -1
  26. package/packages/stryker-runner/mutation-runner-lifecycle.js +4 -2
  27. package/packages/stryker-runner/mutation-runner-lifecycle.js.map +1 -1
  28. package/packages/stryker-runner/mutation-selection.js +8 -7
  29. package/packages/stryker-runner/mutation-selection.js.map +1 -1
  30. package/packages/stryker-runner/overkill-test-runner.js +2 -3
  31. package/packages/stryker-runner/overkill-test-runner.js.map +1 -1
  32. package/readme.md +40 -5
  33. package/software-bill-of-materials.cyclonedx.json +9 -9
package/readme.md CHANGED
@@ -115,11 +115,46 @@ 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.
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
+ Mutants are killed by eligible-case assertions, body errors, test-contract
149
+ failures, or policy violations safely attributed to the executing case and
150
+ attempt. This includes permission denials, forbidden console output, async
151
+ leaks, uncaught exceptions, and unhandled rejections. Killing results include
152
+ stable test IDs and structured failure diagnostics.
153
+
154
+ Loading, collection, infrastructure, reporter, transport, and persistence
155
+ failures return `Error`. Missing or conflicting attribution, inconclusive
156
+ results, and cleanup failures also return `Error`, including cleanup errors
157
+ retained beneath a policy verdict. Serial execution alone never proves ownership.
123
158
 
124
159
  Set Stryker's `coverageAnalysis` to `perTest` (the normal optimized mode), `all`,
125
160
  or `off`. `perTest` returns Stryker's case counters and narrows execution only
@@ -16,24 +16,24 @@
16
16
  "component": {
17
17
  "type": "library",
18
18
  "name": "@overkill-dev/stryker-runner",
19
- "version": "0.0.14",
20
- "bom-ref": "pkg:npm/@overkill-dev/stryker-runner@0.0.14",
21
- "purl": "pkg:npm/@overkill-dev/stryker-runner@0.0.14"
19
+ "version": "0.0.16",
20
+ "bom-ref": "pkg:npm/@overkill-dev/stryker-runner@0.0.16",
21
+ "purl": "pkg:npm/@overkill-dev/stryker-runner@0.0.16"
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.80",
29
+ "bom-ref": "pkg:npm/@overkill-dev/run@0.0.80",
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.80"
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.80"
81
81
  },
82
82
  {
83
- "ref": "pkg:npm/@overkill-dev/stryker-runner@0.0.14",
83
+ "ref": "pkg:npm/@overkill-dev/stryker-runner@0.0.16",
84
84
  "dependsOn": [
85
- "pkg:npm/@overkill-dev/run@0.0.78",
85
+ "pkg:npm/@overkill-dev/run@0.0.80",
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"