@overkill-dev/stryker-runner 0.0.2 → 0.0.3
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.
- package/package.json +2 -2
- package/packages/stryker-runner/mutation-execution-policy.js +28 -0
- package/packages/stryker-runner/mutation-execution-policy.js.map +1 -0
- package/packages/stryker-runner/overkill-test-runner.js +5 -3
- package/packages/stryker-runner/overkill-test-runner.js.map +1 -1
- package/readme.md +12 -4
- package/sbom.cdx.json +9 -9
package/package.json
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"name": "@overkill-dev/stryker-runner",
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"@overkill-dev/run": "0.0.
|
|
30
|
+
"@overkill-dev/run": "0.0.68"
|
|
31
31
|
},
|
|
32
32
|
"repository": {
|
|
33
33
|
"type": "git",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"./packages/stryker-runner/stryker-runner.entry-point.js"
|
|
40
40
|
],
|
|
41
41
|
"type": "module",
|
|
42
|
-
"version": "0.0.
|
|
42
|
+
"version": "0.0.3"
|
|
43
43
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export function createMutationRunCommand(input) {
|
|
2
|
+
return {
|
|
3
|
+
config: input.config,
|
|
4
|
+
cwd: input.cwd,
|
|
5
|
+
engine: { kind: 'default' },
|
|
6
|
+
request: {
|
|
7
|
+
baselineUpdateMode: 'none',
|
|
8
|
+
capabilityRestrictions: { mode: 'enabled' },
|
|
9
|
+
capture: 'buffered',
|
|
10
|
+
coverage: false,
|
|
11
|
+
debug: { mode: 'off', selectors: [] },
|
|
12
|
+
execution: { mode: 'serial' },
|
|
13
|
+
measureResourceUsage: null,
|
|
14
|
+
order: 'seeded',
|
|
15
|
+
paths: [],
|
|
16
|
+
profile: input.profile,
|
|
17
|
+
resourceBudgetOverrides: null,
|
|
18
|
+
resourceUsageSamplingIntervalMilliseconds: null,
|
|
19
|
+
seed: { value: null },
|
|
20
|
+
selection: { kind: 'all' },
|
|
21
|
+
shard: { index: 1, total: 1 },
|
|
22
|
+
timingCollection: 'profile-default',
|
|
23
|
+
verbose: false,
|
|
24
|
+
workers: null
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=mutation-execution-policy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mutation-execution-policy.js","sourceRoot":"","sources":["../../../../../source/packages/stryker-runner/mutation-execution-policy.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,wBAAwB,CACpC,KAAyE;IAEzE,OAAO;QACH,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,GAAG,EAAE,KAAK,CAAC,GAAG;QACd,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;QAC3B,OAAO,EAAE;YACL,kBAAkB,EAAE,MAAM;YAC1B,sBAAsB,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;YAC3C,OAAO,EAAE,UAAU;YACnB,QAAQ,EAAE,KAAK;YACf,KAAK,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE;YACrC,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC7B,oBAAoB,EAAE,IAAI;YAC1B,KAAK,EAAE,QAAQ;YACf,KAAK,EAAE,EAAE;YACT,OAAO,EAAE,KAAK,CAAC,OAAO;YACtB,uBAAuB,EAAE,IAAI;YAC7B,yCAAyC,EAAE,IAAI;YAC/C,IAAI,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE;YACrB,SAAS,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE;YAC1B,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE;YAC7B,gBAAgB,EAAE,iBAAiB;YACnC,OAAO,EAAE,KAAK;YACd,OAAO,EAAE,IAAI;SAChB;KACJ,CAAC;AACN,CAAC"}
|
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
import { commonTokens, tokens } from '@stryker-mutator/api/plugin';
|
|
2
2
|
import { loadConfig } from "@overkill-dev/run";
|
|
3
3
|
import { selectMicrotestProfile } from "./microtest-profile.js";
|
|
4
|
+
import { createMutationRunCommand } from "./mutation-execution-policy.js";
|
|
4
5
|
import { parseRunnerOptions } from "./runner-options.js";
|
|
5
6
|
export function createOverkillTestRunner(options) {
|
|
6
7
|
let initialization = null;
|
|
7
|
-
async function
|
|
8
|
+
async function initializeRunCommand() {
|
|
8
9
|
const settings = parseRunnerOptions(options.overkill);
|
|
9
10
|
const cwd = process.cwd();
|
|
10
11
|
const config = await loadConfig({ configPath: settings.configPath, cwd });
|
|
11
|
-
|
|
12
|
+
const selected = selectMicrotestProfile(config, settings.profile);
|
|
13
|
+
return createMutationRunCommand({ config, cwd, profile: selected.name });
|
|
12
14
|
}
|
|
13
15
|
return {
|
|
14
16
|
capabilities() {
|
|
15
17
|
throw new Error('@overkill-dev/stryker-runner: capabilities() is not implemented.');
|
|
16
18
|
},
|
|
17
19
|
async init() {
|
|
18
|
-
initialization = initialization ??
|
|
20
|
+
initialization = initialization ?? initializeRunCommand();
|
|
19
21
|
await initialization;
|
|
20
22
|
},
|
|
21
23
|
async dryRun() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overkill-test-runner.js","sourceRoot":"","sources":["../../../../../source/packages/stryker-runner/overkill-test-runner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAOnE,OAAO,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"overkill-test-runner.js","sourceRoot":"","sources":["../../../../../source/packages/stryker-runner/overkill-test-runner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAOnE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAA8B,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AAO,CAAC,CAAC"}
|
package/readme.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# `@overkill-dev/stryker-runner`
|
|
2
2
|
|
|
3
3
|
Optional first-party Stryker `TestRunner` plugin for Node microtest profiles.
|
|
4
|
-
Profile initialization
|
|
5
|
-
reporting are not implemented yet.
|
|
4
|
+
Profile initialization prepares the mutation execution policy. Dry runs, mutant
|
|
5
|
+
execution, and capability reporting are not implemented yet.
|
|
6
6
|
|
|
7
7
|
```js
|
|
8
8
|
export default {
|
|
@@ -27,5 +27,13 @@ Browser-oriented integration profiles and multi-profile selections are rejected.
|
|
|
27
27
|
Other profile families may coexist in the project registry. Profile names do not
|
|
28
28
|
determine eligibility. Incompatible test nodes are checked during collection.
|
|
29
29
|
|
|
30
|
-
Initialization
|
|
31
|
-
|
|
30
|
+
Initialization prepares a public runner command with explicit serial scheduling,
|
|
31
|
+
ordinary V8 coverage disabled, and baseline updates disabled. Microtest profiles
|
|
32
|
+
have no Overkill retry policy. Discovery, loaders, capability restrictions,
|
|
33
|
+
resource policies, timeouts, and the configured process model are preserved.
|
|
34
|
+
The original profile remains unchanged; the command records the override as
|
|
35
|
+
`request.execution: { mode: 'serial' }`.
|
|
36
|
+
|
|
37
|
+
Initialization imports no test modules. Repeated initialization shares one
|
|
38
|
+
result, including failures. Campaign policy freezing and invocation execution
|
|
39
|
+
are not implemented yet.
|
package/sbom.cdx.json
CHANGED
|
@@ -16,24 +16,24 @@
|
|
|
16
16
|
"component": {
|
|
17
17
|
"type": "library",
|
|
18
18
|
"name": "@overkill-dev/stryker-runner",
|
|
19
|
-
"version": "0.0.
|
|
20
|
-
"bom-ref": "pkg:npm/@overkill-dev/stryker-runner@0.0.
|
|
21
|
-
"purl": "pkg:npm/@overkill-dev/stryker-runner@0.0.
|
|
19
|
+
"version": "0.0.3",
|
|
20
|
+
"bom-ref": "pkg:npm/@overkill-dev/stryker-runner@0.0.3",
|
|
21
|
+
"purl": "pkg:npm/@overkill-dev/stryker-runner@0.0.3"
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"components": [
|
|
25
25
|
{
|
|
26
26
|
"type": "library",
|
|
27
27
|
"name": "@overkill-dev/run",
|
|
28
|
-
"version": "0.0.
|
|
29
|
-
"bom-ref": "pkg:npm/@overkill-dev/run@0.0.
|
|
28
|
+
"version": "0.0.68",
|
|
29
|
+
"bom-ref": "pkg:npm/@overkill-dev/run@0.0.68",
|
|
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.
|
|
36
|
+
"purl": "pkg:npm/@overkill-dev/run@0.0.68"
|
|
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.
|
|
80
|
+
"ref": "pkg:npm/@overkill-dev/run@0.0.68"
|
|
81
81
|
},
|
|
82
82
|
{
|
|
83
|
-
"ref": "pkg:npm/@overkill-dev/stryker-runner@0.0.
|
|
83
|
+
"ref": "pkg:npm/@overkill-dev/stryker-runner@0.0.3",
|
|
84
84
|
"dependsOn": [
|
|
85
|
-
"pkg:npm/@overkill-dev/run@0.0.
|
|
85
|
+
"pkg:npm/@overkill-dev/run@0.0.68",
|
|
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.5"
|