@overkill-dev/run 0.0.62 → 0.0.63
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/assertion-protocol/assertion-node.d.ts +0 -15
- package/assertion-protocol/assertion-node.d.ts.map +1 -1
- package/assertion-protocol/assertion-reference.d.ts +0 -21
- package/assertion-protocol/assertion-reference.d.ts.map +1 -1
- package/assertion-protocol/assertion-reference.js +3 -30
- package/assertion-protocol/assertion-reference.js.map +1 -1
- package/assertion-protocol/assertions/boolean.d.ts +0 -7
- package/assertion-protocol/assertions/boolean.d.ts.map +1 -1
- package/assertion-protocol/assertions/collection.d.ts +0 -9
- package/assertion-protocol/assertions/collection.d.ts.map +1 -1
- package/assertion-protocol/assertions/equality.d.ts +0 -11
- package/assertion-protocol/assertions/equality.d.ts.map +1 -1
- package/assertion-protocol/assertions/fail.d.ts +0 -5
- package/assertion-protocol/assertions/fail.d.ts.map +1 -1
- package/assertion-protocol/assertions/numeric.d.ts +0 -13
- package/assertion-protocol/assertions/numeric.d.ts.map +1 -1
- package/assertion-protocol/assertions/partial.d.ts +0 -9
- package/assertion-protocol/assertions/partial.d.ts.map +1 -1
- package/assertion-protocol/assertions/presence.d.ts +0 -11
- package/assertion-protocol/assertions/presence.d.ts.map +1 -1
- package/assertion-protocol/assertions/string.d.ts +0 -13
- package/assertion-protocol/assertions/string.d.ts.map +1 -1
- package/assertion-protocol/assertions/type-shape.d.ts +0 -19
- package/assertion-protocol/assertions/type-shape.d.ts.map +1 -1
- package/assertion-protocol/source-location-forwarding.js +1 -7
- package/assertion-protocol/source-location-forwarding.js.map +1 -1
- package/assertion-protocol/thrown-error-record.d.ts +0 -1
- package/assertion-protocol/thrown-error-record.d.ts.map +1 -1
- package/assertion-protocol/thrown-matcher.d.ts +1 -18
- package/assertion-protocol/thrown-matcher.d.ts.map +1 -1
- package/compare/serialized-value-shape.d.ts +0 -9
- package/compare/serialized-value-shape.d.ts.map +1 -1
- package/compare/serialized-value.d.ts +1 -8
- package/compare/serialized-value.d.ts.map +1 -1
- package/engine/assertion-facade.d.ts +2 -5
- package/engine/assertion-facade.d.ts.map +1 -1
- package/engine/async-control.d.ts +0 -26
- package/engine/async-control.d.ts.map +1 -1
- package/engine/case-execution.d.ts +1 -14
- package/engine/case-execution.d.ts.map +1 -1
- package/engine/coverage-artifact.d.ts +0 -14
- package/engine/coverage-artifact.d.ts.map +1 -1
- package/engine/custom-assertion-recording.js +1 -1
- package/engine/custom-assertion-recording.js.map +1 -1
- package/engine/engine.d.ts +1 -8
- package/engine/engine.d.ts.map +1 -1
- package/engine/execution-global-error-observer.d.ts +0 -3
- package/engine/execution-global-error-observer.d.ts.map +1 -1
- package/engine/execution-global-error-observer.js +1 -31
- package/engine/execution-global-error-observer.js.map +1 -1
- package/engine/execution-options.d.ts +0 -6
- package/engine/execution-options.d.ts.map +1 -1
- package/engine/execution-resource-budget-breach.d.ts +0 -9
- package/engine/execution-resource-budget-breach.d.ts.map +1 -1
- package/engine/execution-supervision.d.ts +0 -16
- package/engine/execution-supervision.d.ts.map +1 -1
- package/engine/execution.d.ts +1 -12
- package/engine/execution.d.ts.map +1 -1
- package/engine/identity.d.ts +0 -6
- package/engine/identity.d.ts.map +1 -1
- package/engine/reporter-dispatcher.d.ts +1 -11
- package/engine/reporter-dispatcher.d.ts.map +1 -1
- package/engine/reporter-output.d.ts +0 -6
- package/engine/reporter-output.d.ts.map +1 -1
- package/engine/reporter.d.ts +0 -16
- package/engine/reporter.d.ts.map +1 -1
- package/engine/reporting-context.d.ts +1 -13
- package/engine/reporting-context.d.ts.map +1 -1
- package/engine/require-assertion-facade.d.ts +2 -5
- package/engine/require-assertion-facade.d.ts.map +1 -1
- package/engine/run-result.d.ts +1 -62
- package/engine/run-result.d.ts.map +1 -1
- package/engine/run-timings.d.ts +0 -18
- package/engine/run-timings.d.ts.map +1 -1
- package/engine/test-body-resource-attachment.d.ts +0 -12
- package/engine/test-body-resource-attachment.d.ts.map +1 -1
- package/engine/test-body-resource-attachment.js +3 -134
- package/engine/test-body-resource-attachment.js.map +1 -1
- package/engine/test-data.d.ts +0 -6
- package/engine/test-data.d.ts.map +1 -1
- package/engine/test-node.d.ts +0 -21
- package/engine/test-node.d.ts.map +1 -1
- package/engine/test-node.js +1 -20
- package/engine/test-node.js.map +1 -1
- package/engine/test-plan.d.ts +1 -4
- package/engine/test-plan.d.ts.map +1 -1
- package/package.json +5 -2
- package/reporters/human-reporter-rendering.js +2 -2
- package/reporters/human-reporter-rendering.js.map +1 -1
- package/reporters/tree-reporter.js +2 -103
- package/reporters/tree-reporter.js.map +1 -1
- package/resources/resource-definition-shape.d.ts +0 -2
- package/resources/resource-definition-shape.d.ts.map +1 -1
- package/resources/resource-definition-types.d.ts +1 -96
- package/resources/resource-definition-types.d.ts.map +1 -1
- package/resources/resource-definition.js.map +1 -1
- package/resources/resource-lifecycle-error.d.ts +0 -1
- package/resources/resource-lifecycle-error.d.ts.map +1 -1
- package/resources/resource-lifecycle-error.js +17 -1
- package/resources/resource-lifecycle-error.js.map +1 -1
- package/resources/resource-scenario-binding.js +1 -69
- package/resources/resource-scenario-binding.js.map +1 -1
- package/resources/resource-scenario.d.ts +0 -19
- package/resources/resource-scenario.d.ts.map +1 -1
- package/resources/resource-session.d.ts +1 -20
- package/resources/resource-session.d.ts.map +1 -1
- package/resources/resources.d.ts +5 -88
- package/resources/resources.d.ts.map +1 -1
- package/resources/resources.js +2 -75
- package/resources/resources.js.map +1 -1
- package/resources/runtime-definition.d.ts +0 -7
- package/resources/runtime-definition.d.ts.map +1 -1
- package/resources/runtime-definition.js +2 -57
- package/resources/runtime-definition.js.map +1 -1
- package/resources/runtime-matrix-definition.d.ts +0 -36
- package/resources/runtime-matrix-definition.d.ts.map +1 -1
- package/run/capability-policy-snapshots.d.ts +0 -19
- package/run/capability-policy-snapshots.d.ts.map +1 -1
- package/run/command-line-command-namespace.d.ts +0 -5
- package/run/command-line-command-namespace.d.ts.map +1 -1
- package/run/command-line-command.d.ts +1 -4
- package/run/command-line-command.d.ts.map +1 -1
- package/run/command-line-runner.d.ts +0 -2
- package/run/command-line-runner.d.ts.map +1 -1
- package/run/coverage-reporting.js +6 -188
- package/run/coverage-reporting.js.map +1 -1
- package/run/current-process-run-orchestrator.d.ts +1 -5
- package/run/current-process-run-orchestrator.d.ts.map +1 -1
- package/run/duration-history.d.ts +0 -30
- package/run/duration-history.d.ts.map +1 -1
- package/run/placement-trace.d.ts +0 -18
- package/run/placement-trace.d.ts.map +1 -1
- package/run/resource-lifecycle-composition.d.ts +0 -3
- package/run/resource-lifecycle-composition.d.ts.map +1 -1
- package/run/resource-lifecycle-composition.js +1 -14
- package/run/resource-lifecycle-composition.js.map +1 -1
- package/run/resource-lifecycle-state.d.ts +0 -3
- package/run/resource-lifecycle-state.d.ts.map +1 -1
- package/run/run-collection-source.d.ts +1 -5
- package/run/run-collection-source.d.ts.map +1 -1
- package/run/run-config-schema.d.ts +0 -4
- package/run/run-config-schema.d.ts.map +1 -1
- package/run/run-config.d.ts +0 -1
- package/run/run-config.d.ts.map +1 -1
- package/run/run-discovery-types.d.ts +0 -14
- package/run/run-discovery-types.d.ts.map +1 -1
- package/run/run-engine-primitives.d.ts +10 -0
- package/run/run-engine-primitives.d.ts.map +1 -0
- package/run/run-engine-selection.d.ts +0 -10
- package/run/run-engine-selection.d.ts.map +1 -1
- package/run/run-errors.d.ts +0 -2
- package/run/run-errors.d.ts.map +1 -1
- package/run/run-if-main-options.d.ts +0 -7
- package/run/run-if-main-options.d.ts.map +1 -1
- package/run/run-if-main-profile.d.ts +0 -1
- package/run/run-if-main-profile.d.ts.map +1 -1
- package/run/run-if-main.d.ts +0 -1
- package/run/run-if-main.d.ts.map +1 -1
- package/run/run-orchestrator-dependencies.d.ts +1 -6
- package/run/run-orchestrator-dependencies.d.ts.map +1 -1
- package/run/run-orchestrator.d.ts +0 -8
- package/run/run-orchestrator.d.ts.map +1 -1
- package/run/run-orchestrator.entry-point.d.ts +1 -1
- package/run/run-orchestrator.entry-point.d.ts.map +1 -1
- package/run/run-selection-filters.d.ts +2 -11
- package/run/run-selection-filters.d.ts.map +1 -1
- package/run/run-test-modules.d.ts +0 -4
- package/run/run-test-modules.d.ts.map +1 -1
- package/run/run-timing-collection.d.ts +0 -21
- package/run/run-timing-collection.d.ts.map +1 -1
- package/run/run-types.d.ts +0 -1
- package/run/run-types.d.ts.map +1 -1
- package/run/run.d.ts +0 -3
- package/run/run.d.ts.map +1 -1
- package/run/supervised-child-execution.js +38 -0
- package/run/supervised-child-execution.js.map +1 -0
- package/run/supervised-child-process.d.ts +1 -53
- package/run/supervised-child-process.d.ts.map +1 -1
- package/run/supervised-child-process.js +1 -5
- package/run/supervised-child-process.js.map +1 -1
- package/run/supervised-child-test-plan.js.map +1 -1
- package/run/supervised-child.js +4 -36
- package/run/supervised-child.js.map +1 -1
- package/run/supervised-run-runtime.js.map +1 -1
- package/run/worker-pool-output.js +1 -1
- package/run/worker-pool-output.js.map +1 -1
- package/run/worker-pool-run.js +1 -7
- package/run/worker-pool-run.js.map +1 -1
- package/run/worker-pool-warm-lane-affinity.d.ts +0 -11
- package/run/worker-pool-warm-lane-affinity.d.ts.map +1 -1
- package/run/worker-pool-worker-plan.js.map +1 -1
- package/run/worker-pool-worker-resources.js.map +1 -1
- package/run/worker-pool-worker.js +1 -1
- package/run/worker-pool-worker.js.map +1 -1
- package/sbom.cdx.json +5 -5
- package/assertion-protocol/assertion-evaluation.d.ts +0 -13
- package/assertion-protocol/assertion-evaluation.d.ts.map +0 -1
- package/assertion-protocol/evaluation.d.ts +0 -32
- package/assertion-protocol/evaluation.d.ts.map +0 -1
- package/assertion-protocol/source-location-forwarding.d.ts +0 -4
- package/assertion-protocol/source-location-forwarding.d.ts.map +0 -1
- package/assertion-protocol/source-location.d.ts +0 -8
- package/assertion-protocol/source-location.d.ts.map +0 -1
- package/compare/comparison-result.d.ts +0 -25
- package/compare/comparison-result.d.ts.map +0 -1
- package/compare/comparison.d.ts +0 -12
- package/compare/comparison.d.ts.map +0 -1
- package/engine/async-leak-diagnostics.d.ts +0 -27
- package/engine/async-leak-diagnostics.d.ts.map +0 -1
- package/engine/custom-assertion-recording.d.ts +0 -33
- package/engine/custom-assertion-recording.d.ts.map +0 -1
- package/engine/execution-async-leak-policy.d.ts +0 -24
- package/engine/execution-async-leak-policy.d.ts.map +0 -1
- package/engine/execution-supervision-state.d.ts +0 -30
- package/engine/execution-supervision-state.d.ts.map +0 -1
- package/engine/reporter-disposal.d.ts +0 -6
- package/engine/reporter-disposal.d.ts.map +0 -1
- package/packages/engine/assertion-protocol.entry-point.d.ts +0 -10
- package/packages/engine/assertion-protocol.entry-point.d.ts.map +0 -1
- package/packages/engine/assertion-protocol.entry-point.js +0 -5
- package/packages/engine/assertion-protocol.entry-point.js.map +0 -1
- package/packages/engine/engine.entry-point.d.ts +0 -58
- package/packages/engine/engine.entry-point.d.ts.map +0 -1
- package/packages/engine/engine.entry-point.js +0 -75
- package/packages/engine/engine.entry-point.js.map +0 -1
- package/resources/resource-definition-brand.d.ts +0 -2
- package/resources/resource-definition-brand.d.ts.map +0 -1
- package/resources/resource-graph.d.ts +0 -24
- package/resources/resource-graph.d.ts.map +0 -1
- package/resources/resource-scenario-binding.d.ts +0 -37
- package/resources/resource-scenario-binding.d.ts.map +0 -1
- package/run/duration-history-schema.d.ts +0 -251
- package/run/duration-history-schema.d.ts.map +0 -1
- package/run/supervised-run-state.d.ts +0 -44
- package/run/supervised-run-state.d.ts.map +0 -1
package/engine/test-plan.d.ts
CHANGED
|
@@ -3,8 +3,7 @@ import { type CaseId, type WorkId } from './identity.ts';
|
|
|
3
3
|
import { type TestBodyResourceAttachments } from './test-body-resource-attachment.ts';
|
|
4
4
|
import { type TestAnnotations, type TestAnnotationsInput, type TestControls, type TestControlsInput, type TestFamily } from './test-data.ts';
|
|
5
5
|
import type { OrphanedNode } from './run-result.ts';
|
|
6
|
-
import { type
|
|
7
|
-
export type TestPlanCaseBody = TestBody;
|
|
6
|
+
import { type TestCaseExecution, type TestNode, type TestRoot } from './test-node.ts';
|
|
8
7
|
export type TestPlanCaseExecution = TestCaseExecution;
|
|
9
8
|
export type TestPlanSuitePathEntry = {
|
|
10
9
|
readonly definitionLocations: NonEmptyReadonlyArray<ResolvableSourceLocation>;
|
|
@@ -47,7 +46,5 @@ export type TestPlanFromTestFilesOptions = {
|
|
|
47
46
|
readonly root: TestPlanRootOptions;
|
|
48
47
|
};
|
|
49
48
|
export type TestPlanFromTestFilesFactory = (options: TestPlanFromTestFilesOptions) => TestPlan;
|
|
50
|
-
export declare function createTestPlanFactory(owner: TestNodeOwner, constructedNodes: ReadonlySet<TestNode>): TestPlanFactory;
|
|
51
|
-
export declare function createTestPlanFromTestFilesFactory(owner: TestNodeOwner, createRoot: (options: RootOptions) => TestRoot): TestPlanFromTestFilesFactory;
|
|
52
49
|
export {};
|
|
53
50
|
//# sourceMappingURL=test-plan.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-plan.d.ts","sourceRoot":"","sources":["../../../../source/engine/test-plan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,qBAAqB,EACrB,wBAAwB,EAC3B,MAAM,+CAA+C,CAAC;AAEvD,OAAO,EAKH,KAAK,MAAM,EACX,KAAK,MAAM,EACd,MAAM,eAAe,CAAC;AACvB,OAAO,EAEH,KAAK,2BAA2B,EACnC,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAKH,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,UAAU,EAClB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAIH,
|
|
1
|
+
{"version":3,"file":"test-plan.d.ts","sourceRoot":"","sources":["../../../../source/engine/test-plan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,qBAAqB,EACrB,wBAAwB,EAC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AAC,KAAK,EAAE,qBAAqB,CAAC,YAAY,CAAC,CAAC;IACpD,QAAQ,CAAC,eAAe,EAAE,qBAAqB,CAAC,YAAY,CAAC,CAAC;IAC9D,QAAQ,CAAC,OAAO,EAAE,SAAS,YAAY,EAAE,CAAC;IAC1C,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC;CAC/B,CAAC;AAEF,KAAK,YAAY,GAAG;IAChB,QAAQ,CAAC,WAAW,EAAE,eAAe,CAAC;IACtC,QAAQ,CAAC,QAAQ,EAAE,YAAY,CAAC;IAChC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,CAAC,IAAI,EAAE,QAAQ,KAAK,QAAQ,CAAC;AAE3D,MAAM,MAAM,mBAAmB,GAAG;IAC9B,QAAQ,CAAC,WAAW,EAAE,oBAAoB,CAAC;IAC3C,QAAQ,CAAC,QAAQ,EAAE,iBAAiB,CAAC;IACrC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACvC,QAAQ,CAAC,KAAK,EAAE,qBAAqB,CAAC;QAClC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;QACtB,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;KAC/B,CAAC,CAAC;IACH,QAAQ,CAAC,IAAI,EAAE,mBAAmB,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG,CAAC,OAAO,EAAE,4BAA4B,KAAK,QAAQ,CAAC;AAiR/F"}
|
package/package.json
CHANGED
|
@@ -61,8 +61,10 @@
|
|
|
61
61
|
"url": "git+https://github.com/enormora/overkill.git"
|
|
62
62
|
},
|
|
63
63
|
"sideEffects": [
|
|
64
|
+
"./assertion-protocol/assertion-node.js",
|
|
64
65
|
"./assertion-protocol/assertion-reference.js",
|
|
65
66
|
"./assertion-protocol/source-location-forwarding.js",
|
|
67
|
+
"./engine/assertion-recorder.js",
|
|
66
68
|
"./engine/async-leak-diagnostics.js",
|
|
67
69
|
"./engine/execution-async-leak-policy.js",
|
|
68
70
|
"./engine/execution-global-error-observer.js",
|
|
@@ -76,7 +78,6 @@
|
|
|
76
78
|
"./engine/test-body-resource-attachment.js",
|
|
77
79
|
"./engine/test-data.js",
|
|
78
80
|
"./engine/test-node.js",
|
|
79
|
-
"./packages/engine/engine.entry-point.js",
|
|
80
81
|
"./packages/run/command-line.entry-point.js",
|
|
81
82
|
"./packages/run/config.entry-point.js",
|
|
82
83
|
"./packages/run/run.entry-point.js",
|
|
@@ -84,6 +85,7 @@
|
|
|
84
85
|
"./reporters/line-reporter.js",
|
|
85
86
|
"./reporters/tree-reporter.js",
|
|
86
87
|
"./resources/resource-definition.js",
|
|
88
|
+
"./resources/resource-lifecycle-error.js",
|
|
87
89
|
"./resources/resource-scenario-binding.js",
|
|
88
90
|
"./resources/resources.js",
|
|
89
91
|
"./resources/runtime-definition.js",
|
|
@@ -106,6 +108,7 @@
|
|
|
106
108
|
"./run/run-collection-source.js",
|
|
107
109
|
"./run/run-config-schema.js",
|
|
108
110
|
"./run/run-coverage.js",
|
|
111
|
+
"./run/run-errors.js",
|
|
109
112
|
"./run/run-filter-grammar.js",
|
|
110
113
|
"./run/run-host-process.js",
|
|
111
114
|
"./run/run-if-main.js",
|
|
@@ -128,5 +131,5 @@
|
|
|
128
131
|
"./run/worker-pool-worker-resources.js"
|
|
129
132
|
],
|
|
130
133
|
"type": "module",
|
|
131
|
-
"version": "0.0.
|
|
134
|
+
"version": "0.0.63"
|
|
132
135
|
}
|
|
@@ -2,7 +2,7 @@ import colors from 'yoctocolors';
|
|
|
2
2
|
import { formatCaseId } from "../engine/identity.js";
|
|
3
3
|
import { formatDefinitionLocations } from "../engine/reporting-context.js";
|
|
4
4
|
import { formatFailure } from "./line-failure-rendering.js";
|
|
5
|
-
import
|
|
5
|
+
import "./run-summary-rendering.js";
|
|
6
6
|
const colorPalette = [
|
|
7
7
|
colors.cyan,
|
|
8
8
|
colors.green,
|
|
@@ -15,7 +15,7 @@ function executedCount(result) {
|
|
|
15
15
|
return summary.passed + summary.failed + summary.skipped + summary.inconclusive +
|
|
16
16
|
summary.resourceExhausted + summary.crashed + summary.runtimePolicy;
|
|
17
17
|
}
|
|
18
|
-
|
|
18
|
+
|
|
19
19
|
export function formatCountSummary(result) {
|
|
20
20
|
const { summary } = result;
|
|
21
21
|
const outcomes = [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"human-reporter-rendering.js","sourceRoot":"","sources":["../../../../source/reporters/human-reporter-rendering.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,YAAY,EAA+B,MAAM,uBAAuB,CAAC;AAClF,OAAO,EAAE,yBAAyB,EAAyB,MAAM,gCAAgC,CAAC;AAElG,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,
|
|
1
|
+
{"version":3,"file":"human-reporter-rendering.js","sourceRoot":"","sources":["../../../../source/reporters/human-reporter-rendering.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,YAAY,EAA+B,MAAM,uBAAuB,CAAC;AAClF,OAAO,EAAE,yBAAyB,EAAyB,MAAM,gCAAgC,CAAC;AAElG,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAA8D,4BAA4B,CAAC;AAE3F,MAAM,YAAY,GAAG;IACjB,MAAM,CAAC,IAAI;IACX,MAAM,CAAC,KAAK;IACZ,MAAM,CAAC,OAAO;IACd,MAAM,CAAC,MAAM;IACb,MAAM,CAAC,IAAI;CACL,CAAC;AAaX,SAAS,aAAa,CAAC,MAAiB;IACpC,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;IAE3B,OAAO,OAAO,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,OAAO,CAAC,OAAO,GAA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GAAG,CAAE,GAAG,SAAS,EAAE,GAAG,gBAAgB,EAAE,GAAG,gBAAgB,CAAE,CAAC;IAEzE,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAC7B,UAAU;QACV,GAAG,KAAK,CAAC,GAAG,CAAC,SAAS,aAAa,CAAC,IAAI;YACpC,OAAO,KAAK,IAAI,EAAE,CAAC;QACvB,CAAC,CAAC;KACL,CAAC;AACN,CAAC"}
|
|
@@ -1,111 +1,10 @@
|
|
|
1
1
|
import figures from 'figures';
|
|
2
2
|
import colors from 'yoctocolors';
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import "../engine/reporter.js";
|
|
4
|
+
import "./human-reporter-rendering.js";
|
|
5
5
|
const successSymbol = colors.green(figures.tick);
|
|
6
6
|
const errorSymbol = colors.red(figures.cross);
|
|
7
7
|
const skipSymbol = colors.cyan('°');
|
|
8
8
|
const inconclusiveSymbol = colors.cyan('?');
|
|
9
9
|
const crashSymbol = colors.red(figures.warning);
|
|
10
|
-
const microsecondsPerMillisecond = 1000;
|
|
11
|
-
function formatDuration(durationMicroseconds) {
|
|
12
|
-
return `${durationMicroseconds / microsecondsPerMillisecond} ms`;
|
|
13
|
-
}
|
|
14
|
-
function symbolFor(testResult) {
|
|
15
|
-
if (testResult.verdict === 'pass') {
|
|
16
|
-
return successSymbol;
|
|
17
|
-
}
|
|
18
|
-
if (testResult.verdict === 'skip') {
|
|
19
|
-
return skipSymbol;
|
|
20
|
-
}
|
|
21
|
-
if (testResult.verdict === 'inconclusive') {
|
|
22
|
-
return inconclusiveSymbol;
|
|
23
|
-
}
|
|
24
|
-
if (testResult.verdict === 'fail') {
|
|
25
|
-
return errorSymbol;
|
|
26
|
-
}
|
|
27
|
-
return crashSymbol;
|
|
28
|
-
}
|
|
29
|
-
function resultVisible(testResult, options) {
|
|
30
|
-
return options.showPassing || testResult.verdict !== 'pass';
|
|
31
|
-
}
|
|
32
|
-
function caseLine(testResult) {
|
|
33
|
-
const params = testResult.id.params === null ? '' : ` [${testResult.id.params}]`;
|
|
34
|
-
return `${symbolFor(testResult)} ${testResult.id.title}${params} ` +
|
|
35
|
-
`(${formatDuration(testResult.durationMicroseconds)})`;
|
|
36
|
-
}
|
|
37
|
-
function indent(depth) {
|
|
38
|
-
return ' '.repeat(depth);
|
|
39
|
-
}
|
|
40
|
-
function appendFileLine(state, testResult) {
|
|
41
|
-
if (state.fileStarted && testResult.id.file === state.currentFile) {
|
|
42
|
-
return state;
|
|
43
|
-
}
|
|
44
|
-
return {
|
|
45
|
-
currentFile: testResult.id.file,
|
|
46
|
-
currentSuite: [],
|
|
47
|
-
fileStarted: true,
|
|
48
|
-
lines: [...state.lines, testResult.id.file ?? '<unknown>']
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
function appendSuiteLines(state, suite) {
|
|
52
|
-
const { currentSuite: previousSuite } = state;
|
|
53
|
-
const lines = Array.from(state.lines);
|
|
54
|
-
let currentSuite = previousSuite;
|
|
55
|
-
for (let index = 0; index < suite.length; index += 1) {
|
|
56
|
-
const [title] = suite.slice(index, index + 1);
|
|
57
|
-
const previous = currentSuite[index];
|
|
58
|
-
if (title !== previous) {
|
|
59
|
-
currentSuite = suite.slice(0, index + 1);
|
|
60
|
-
lines.push(`${indent(index + 1)}${title}`);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
return { ...state, currentSuite, lines };
|
|
64
|
-
}
|
|
65
|
-
function appendTestLine(state, testResult) {
|
|
66
|
-
const lines = [
|
|
67
|
-
...state.lines,
|
|
68
|
-
`${indent(testResult.id.suite.length + 1)}${caseLine(testResult)}`
|
|
69
|
-
];
|
|
70
|
-
return { ...state, lines };
|
|
71
|
-
}
|
|
72
|
-
function appendVisibleTestResult(state, testResult) {
|
|
73
|
-
return appendTestLine(appendSuiteLines(appendFileLine(state, testResult), testResult.id.suite), testResult);
|
|
74
|
-
}
|
|
75
|
-
function treeLines(result, options) {
|
|
76
|
-
const initialState = { currentFile: null, currentSuite: [], fileStarted: false, lines: [] };
|
|
77
|
-
const state = result
|
|
78
|
-
.perTest
|
|
79
|
-
.filter(function includeResult(testResult) {
|
|
80
|
-
return resultVisible(testResult, options);
|
|
81
|
-
})
|
|
82
|
-
.reduce(appendVisibleTestResult, initialState);
|
|
83
|
-
return state.lines;
|
|
84
|
-
}
|
|
85
|
-
function treeSummaryLine(result) {
|
|
86
|
-
const symbol = result.status === 'failed' ? errorSymbol : successSymbol;
|
|
87
|
-
return `${symbol} ${formatCountSummary(result)} in ${formatDuration(result.timings.summary.totalWallTimeMicroseconds)} (${formatTimingSummary(result)})`;
|
|
88
|
-
}
|
|
89
|
-
export function treeResultLines(result, context, options) {
|
|
90
|
-
return [
|
|
91
|
-
...treeLines(result, options),
|
|
92
|
-
...problemLines(result, context, { verbose: options.verbose }),
|
|
93
|
-
treeSummaryLine(result)
|
|
94
|
-
];
|
|
95
|
-
}
|
|
96
|
-
export function createTreeReporter(dependencies, options) {
|
|
97
|
-
return defineReporter(function createTreeRuntimeReporter(context) {
|
|
98
|
-
return {
|
|
99
|
-
dispose: null,
|
|
100
|
-
kind: 'final-result',
|
|
101
|
-
name: 'tree',
|
|
102
|
-
sinks: [{ kind: 'stdout-raw' }],
|
|
103
|
-
onResult(result) {
|
|
104
|
-
for (const line of treeResultLines(result, context, options)) {
|
|
105
|
-
dependencies.stdoutConsole.log(line);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
};
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
10
|
//# sourceMappingURL=tree-reporter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tree-reporter.js","sourceRoot":"","sources":["../../../../source/reporters/tree-reporter.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,
|
|
1
|
+
{"version":3,"file":"tree-reporter.js","sourceRoot":"","sources":["../../../../source/reporters/tree-reporter.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAA+E,uBAAuB,CAAC;AAGvG,OAIO,+BAA+B,CAAC;AAWvC,MAAM,aAAa,GAAG,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;AACjD,MAAM,WAAW,GAAG,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAC9C,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACpC,MAAM,kBAAkB,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC5C,MAAM,WAAW,GAAG,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { ResourceScenarioSlots } from './resource-scenario.ts';
|
|
2
2
|
export type Awaitable<Value> = Promise<Value> | Value;
|
|
3
|
-
export type ValueOf<Values> = Values[keyof Values];
|
|
4
3
|
type ExclusiveResource = {
|
|
5
4
|
readonly kind: 'exclusive-resource';
|
|
6
5
|
readonly name: string;
|
|
@@ -48,7 +47,6 @@ export type AnyResourceDefinition = {
|
|
|
48
47
|
readonly serializeHandle?: (handle: never, context: never) => ResourceProjectionPayload;
|
|
49
48
|
};
|
|
50
49
|
export type RuntimeResourceMap = Readonly<Record<string, AnyResourceDefinition>>;
|
|
51
|
-
export type EmptyResourceDependencies = Readonly<Record<PropertyKey, never>>;
|
|
52
50
|
export type ResourceDependencies = Readonly<Record<string, AnyResourceDefinition>>;
|
|
53
51
|
type ResourceProjectionObject = {
|
|
54
52
|
readonly [key: string]: ResourceProjectionPayload;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource-definition-shape.d.ts","sourceRoot":"","sources":["../../../../source/resources/resource-definition-shape.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAEpE,MAAM,MAAM,SAAS,CAAC,KAAK,IAAI,OAAO,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"resource-definition-shape.d.ts","sourceRoot":"","sources":["../../../../source/resources/resource-definition-shape.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAEpE,MAAM,MAAM,SAAS,CAAC,KAAK,IAAI,OAAO,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC;KAGjD,iBAAiB,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,oBAAoB,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CAAE,CAAC;AACzF,KAAK,eAAe,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;CAAE,CAAC;AACpD,KAAK,qBAAqB,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,eAAe,CAAC;CAAE,CAAC;AACjE,KAAK,aAAa,GAAG;IACjB,QAAQ,CAAC,IAAI,EAAE,6BAA6B,CAAC;IAC7C,QAAQ,CAAC,mBAAmB,EAAE,MAAM,CAAC;CACxC,CAAC;AACF,KAAK,cAAc,GAAG;IAClB,QAAQ,CAAC,IAAI,EAAE,iBAAiB,CAAC;IACjC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CAC3B,CAAC;AACF,KAAK,WAAW,GAAG;IACf,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC;CACjC,CAAC;AACF,KAAK,WAAW,GAAG;IACf,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC;CACjC,CAAC;AACF,KAAK,kBAAkB,GAAG;IACtB,QAAQ,CAAC,IAAI,EAAE,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AC;CAC3F,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC,CAAC;AACjF,MAAM,0BAA+B,GAAG,QAAQ,CAAC,MAAM,OACE,EAAE,qBAAqB,CAAC,CAAC,CAAC;AAEnF,KAAK,wBAAwB,GAAG;IAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,yBAAyB,CAAC;CAAE,CAAC;AACvF,KAAK,wBAAwB,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;AACjE,KAAK,4BAA4B,GAAG,wBAAwB,GAAG,SAAS,yBAAyB,EAAE,CAAC;AACpG,MAAM,MAAM,yBAAyB,GAAG,4BAA4B,GAAG,wBAAwB,CAAC"}
|
|
@@ -1,104 +1,9 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { AnyResourceDefinition, Awaitable, EmptyResourceDependencies, ExecutionRequirement, ResourceDependencies, ResourceProjectionPayload, ResourceScope, ValueOf } from './resource-definition-shape.ts';
|
|
3
|
-
import type { resourceDefinitionBrand } from './resource-definition-brand.ts';
|
|
4
|
-
import type { EmptyResourceScenarioSlots, ResourceScenarioBindingsForTiming, ResourceScenarioSlotInputs, ResourceScenarioSlotsFromInputs, ResourceScenarioSlots } from './resource-scenario.ts';
|
|
5
|
-
type ProjectedResourceScope = 'per-file' | 'per-run' | 'per-suite';
|
|
6
|
-
export type WithDependencies<Input, Dependencies extends ResourceDependencies> = Merge<Input, {
|
|
7
|
-
readonly dependencies: Dependencies;
|
|
8
|
-
}>;
|
|
9
|
-
type WithScenarios<Input extends {
|
|
10
|
-
readonly scenarios: unknown;
|
|
11
|
-
}, ScenarioInputs extends ResourceScenarioSlotInputs> = Merge<Except<Input, 'scenarios'>, {
|
|
12
|
-
readonly scenarios: ScenarioInputs;
|
|
13
|
-
}>;
|
|
14
|
-
export type ResourceProjectionContext<Dependencies extends ResourceDependencies = EmptyResourceDependencies> = {
|
|
15
|
-
readonly dependencies: ResourceContext<Dependencies>;
|
|
16
|
-
};
|
|
17
|
-
export type ResourceHandleExposureContext<Scenarios extends ResourceScenarioSlots = EmptyResourceScenarioSlots> = {
|
|
18
|
-
readonly scenarios: ResourceScenarioBindingsForTiming<Scenarios, 'request-routed'>;
|
|
19
|
-
};
|
|
1
|
+
import type { AnyResourceDefinition, ResourceDependencies } from './resource-definition-shape.ts';
|
|
20
2
|
export type ResourceHandle<Resource extends AnyResourceDefinition> = Resource extends {
|
|
21
3
|
readonly deserializeHandle?: ((payload: never, context: never) => infer ConsumerHandle) | undefined;
|
|
22
4
|
} ? ConsumerHandle : Awaited<ReturnType<Resource['acquire']>>;
|
|
23
5
|
export type ResourceContext<Resources extends ResourceDependencies> = {
|
|
24
6
|
readonly [Key in keyof Resources]: ResourceHandle<Resources[Key]>;
|
|
25
7
|
};
|
|
26
|
-
export type ResourceCreationContext<Dependencies extends ResourceDependencies = EmptyResourceDependencies, Scenarios extends ResourceScenarioSlots = EmptyResourceScenarioSlots> = {
|
|
27
|
-
readonly dependencies: ResourceContext<Dependencies>;
|
|
28
|
-
readonly scenarios: ResourceScenarioBindingsForTiming<Scenarios, 'acquire'>;
|
|
29
|
-
readonly signal: AbortSignal;
|
|
30
|
-
};
|
|
31
|
-
export type ResourceDisposalContext<Dependencies extends ResourceDependencies = EmptyResourceDependencies, Scenarios extends ResourceScenarioSlots = EmptyResourceScenarioSlots> = {
|
|
32
|
-
readonly dependencies: ResourceContext<Dependencies>;
|
|
33
|
-
readonly scenarios: ResourceScenarioBindingsForTiming<Scenarios, 'acquire'>;
|
|
34
|
-
readonly signal: AbortSignal;
|
|
35
|
-
};
|
|
36
|
-
type RequestRoutedScenarioNames<Scenarios extends ResourceScenarioSlots> = keyof {
|
|
37
|
-
readonly [Slot in keyof Scenarios as 'request-routed' extends Scenarios[Slot]['timing'] ? Slot : never]: true;
|
|
38
|
-
};
|
|
39
|
-
type ResourceHandleExposureInput<Handle, Scenarios extends ResourceScenarioSlots> = {
|
|
40
|
-
readonly exposeHandle?: (handle: Handle, context: ResourceHandleExposureContext<Scenarios>) => Handle;
|
|
41
|
-
};
|
|
42
|
-
type ResourceHandleExposureDefinition<Handle, Scenarios extends ResourceScenarioSlots> = RequestRoutedScenarioNames<Scenarios> extends never ? {
|
|
43
|
-
readonly exposeHandle: null;
|
|
44
|
-
} : {
|
|
45
|
-
readonly exposeHandle: (handle: Handle, context: ResourceHandleExposureContext<Scenarios>) => Handle;
|
|
46
|
-
};
|
|
47
|
-
type ResourceDisposal<Handle, Dependencies extends ResourceDependencies, Scenarios extends ResourceScenarioSlots> = ((handle: Handle, context: ResourceDisposalContext<Dependencies, Scenarios>) => Awaitable<void>) | null;
|
|
48
|
-
type ResourceDefinitionBaseInput<Name extends string, Handle, Scope extends ResourceScope, Dependencies extends ResourceDependencies = EmptyResourceDependencies, Scenarios extends ResourceScenarioSlots = EmptyResourceScenarioSlots> = {
|
|
49
|
-
readonly acquire: (context: ResourceCreationContext<Dependencies, Scenarios>) => Awaitable<Handle>;
|
|
50
|
-
readonly dependencies?: Dependencies;
|
|
51
|
-
readonly dispose: ResourceDisposal<Handle, Dependencies, Scenarios>;
|
|
52
|
-
readonly name: Name;
|
|
53
|
-
readonly requirements: readonly ExecutionRequirement[];
|
|
54
|
-
readonly scope: Scope;
|
|
55
|
-
};
|
|
56
|
-
export type LocalOnlyResourceDefinitionInput<Name extends string, Handle, Scope extends ResourceScope, Dependencies extends ResourceDependencies = EmptyResourceDependencies, Scenarios extends ResourceScenarioSlots = EmptyResourceScenarioSlots> = Merge<ResourceDefinitionBaseInput<Name, Handle, Scope, Dependencies, Scenarios>, ResourceHandleExposureInput<Handle, NoInfer<Scenarios>> & {
|
|
57
|
-
readonly deserializeHandle?: never;
|
|
58
|
-
readonly scenarios: Scenarios;
|
|
59
|
-
readonly serializeHandle?: never;
|
|
60
|
-
}>;
|
|
61
|
-
export type ProjectedResourceDefinitionInput<Name extends string, OwnerHandle, Projection extends ResourceProjectionPayload, ConsumerHandle, Scope extends 'per-file' | 'per-run' | 'per-suite', Dependencies extends ResourceDependencies = EmptyResourceDependencies, Scenarios extends ResourceScenarioSlots = EmptyResourceScenarioSlots> = Merge<ResourceDefinitionBaseInput<Name, OwnerHandle, Scope, Dependencies, Scenarios>, ResourceHandleExposureInput<ConsumerHandle, NoInfer<Scenarios>> & {
|
|
62
|
-
readonly deserializeHandle: (payload: Projection, context: ResourceProjectionContext<Dependencies>) => ConsumerHandle;
|
|
63
|
-
readonly scenarios: Scenarios;
|
|
64
|
-
readonly serializeHandle: (handle: OwnerHandle, context: ResourceProjectionContext<Dependencies>) => Projection;
|
|
65
|
-
}>;
|
|
66
|
-
export type ScenarioLocalInput<Name extends string, Handle, Scope extends Exclude<ResourceScope, 'per-run'>, Dependencies extends ResourceDependencies, ScenarioInputs extends ResourceScenarioSlotInputs> = WithScenarios<LocalOnlyResourceDefinitionInput<Name, Handle, Scope, Dependencies, ResourceScenarioSlotsFromInputs<ScenarioInputs>>, ScenarioInputs>;
|
|
67
|
-
export type ScenarioProjectedInput<Name extends string, OwnerHandle, Projection extends ResourceProjectionPayload, ConsumerHandle, Scope extends ProjectedResourceScope, Dependencies extends ResourceDependencies, ScenarioInputs extends ResourceScenarioSlotInputs> = WithScenarios<ProjectedResourceDefinitionInput<Name, OwnerHandle, Projection, ConsumerHandle, Scope, Dependencies, ResourceScenarioSlotsFromInputs<ScenarioInputs>>, ScenarioInputs>;
|
|
68
|
-
export type DefineResource = {
|
|
69
|
-
<const Name extends string, Handle, Scope extends Exclude<ResourceScope, 'per-run'>, const Dependencies extends ResourceDependencies, const ScenarioInputs extends ResourceScenarioSlotInputs>(definition: WithDependencies<ScenarioLocalInput<Name, Handle, Scope, Dependencies, ScenarioInputs>, Dependencies>): ResourceDefinition<Name, Handle, Dependencies, Handle, ResourceScenarioSlotsFromInputs<ScenarioInputs>>;
|
|
70
|
-
<const Name extends string, OwnerHandle, Projection extends ResourceProjectionPayload, ConsumerHandle, Scope extends ProjectedResourceScope, const Dependencies extends ResourceDependencies, const ScenarioInputs extends ResourceScenarioSlotInputs>(definition: WithDependencies<ScenarioProjectedInput<Name, OwnerHandle, Projection, ConsumerHandle, Scope, Dependencies, ScenarioInputs>, Dependencies>): ResourceDefinition<Name, OwnerHandle, Dependencies, ConsumerHandle, ResourceScenarioSlotsFromInputs<ScenarioInputs>>;
|
|
71
|
-
<const Name extends string, Handle, Scope extends Exclude<ResourceScope, 'per-run'>, const ScenarioInputs extends ResourceScenarioSlotInputs>(definition: Except<ScenarioLocalInput<Name, Handle, Scope, EmptyResourceDependencies, ScenarioInputs>, 'dependencies'>): ResourceDefinition<Name, Handle, EmptyResourceDependencies, Handle, ResourceScenarioSlotsFromInputs<ScenarioInputs>>;
|
|
72
|
-
<const Name extends string, OwnerHandle, Projection extends ResourceProjectionPayload, ConsumerHandle, Scope extends ProjectedResourceScope, const ScenarioInputs extends ResourceScenarioSlotInputs>(definition: Except<ScenarioProjectedInput<Name, OwnerHandle, Projection, ConsumerHandle, Scope, EmptyResourceDependencies, ScenarioInputs>, 'dependencies'>): ResourceDefinition<Name, OwnerHandle, EmptyResourceDependencies, ConsumerHandle, ResourceScenarioSlotsFromInputs<ScenarioInputs>>;
|
|
73
|
-
<const Name extends string, Handle, Scope extends Exclude<ResourceScope, 'per-run'>>(definition: Except<LocalOnlyResourceDefinitionInput<Name, Handle, Scope>, 'scenarios'>): ResourceDefinition<Name, Handle, EmptyResourceDependencies, Handle>;
|
|
74
|
-
<const Name extends string, OwnerHandle, Projection extends ResourceProjectionPayload, ConsumerHandle, Scope extends ProjectedResourceScope>(definition: Except<ProjectedResourceDefinitionInput<Name, OwnerHandle, Projection, ConsumerHandle, Scope>, 'scenarios'>): ResourceDefinition<Name, OwnerHandle, EmptyResourceDependencies, ConsumerHandle>;
|
|
75
|
-
<const Name extends string, Handle, Scope extends Exclude<ResourceScope, 'per-run'>, const Dependencies extends ResourceDependencies>(definition: WithDependencies<Except<LocalOnlyResourceDefinitionInput<Name, Handle, Scope, Dependencies>, 'scenarios'>, Dependencies>): ResourceDefinition<Name, Handle, Dependencies, Handle>;
|
|
76
|
-
<const Name extends string, OwnerHandle, Projection extends ResourceProjectionPayload, ConsumerHandle, Scope extends ProjectedResourceScope, const Dependencies extends ResourceDependencies>(definition: WithDependencies<Except<ProjectedResourceDefinitionInput<Name, OwnerHandle, Projection, ConsumerHandle, Scope, Dependencies>, 'scenarios'>, Dependencies>): ResourceDefinition<Name, OwnerHandle, Dependencies, ConsumerHandle>;
|
|
77
|
-
};
|
|
78
|
-
export type ResourceDefinitionInput<Name extends string, Handle, Dependencies extends ResourceDependencies = EmptyResourceDependencies, Projection extends ResourceProjectionPayload = ResourceProjectionPayload, ConsumerHandle = Handle> = Except<ValueOf<ResourceDefinitionInputOptions<Name, Handle, Dependencies, Projection, ConsumerHandle>>, 'scenarios'>;
|
|
79
|
-
type ResourceDefinitionInputOptions<Name extends string, Handle, Dependencies extends ResourceDependencies, Projection extends ResourceProjectionPayload, ConsumerHandle> = {
|
|
80
|
-
readonly local: LocalResourceDefinitionInput<Name, Handle, Dependencies>;
|
|
81
|
-
readonly projected: ProjectedResourceInput<Name, Handle, Projection, ConsumerHandle, Dependencies>;
|
|
82
|
-
};
|
|
83
|
-
type LocalResourceDefinitionInput<Name extends string, Handle, Dependencies extends ResourceDependencies> = LocalCaseResourceInput<Name, Handle, Dependencies> | LocalFileResourceInput<Name, Handle, Dependencies>;
|
|
84
|
-
type LocalCaseResourceInput<Name extends string, Handle, Dependencies extends ResourceDependencies> = LocalOnlyResourceDefinitionInput<Name, Handle, 'per-case' | 'shared-per-worker', Dependencies>;
|
|
85
|
-
type LocalFileResourceInput<Name extends string, Handle, Dependencies extends ResourceDependencies> = LocalOnlyResourceDefinitionInput<Name, Handle, 'per-file' | 'per-suite', Dependencies>;
|
|
86
|
-
type ProjectedResourceInput<Name extends string, Handle, Projection extends ResourceProjectionPayload, ConsumerHandle, Dependencies extends ResourceDependencies> = ValueOf<ProjectedResourceInputOptions<Name, Handle, Projection, ConsumerHandle, Dependencies>>;
|
|
87
|
-
type ProjectedResourceInputOptions<Name extends string, Handle, Projection extends ResourceProjectionPayload, ConsumerHandle, Dependencies extends ResourceDependencies> = {
|
|
88
|
-
readonly file: ProjectedResourceDefinitionInput<Name, Handle, Projection, ConsumerHandle, 'per-file' | 'per-suite', Dependencies>;
|
|
89
|
-
readonly run: ProjectedResourceDefinitionInput<Name, Handle, Projection, ConsumerHandle, 'per-run', Dependencies>;
|
|
90
|
-
};
|
|
91
|
-
export type ResourceDefinition<Name extends string = string, OwnerHandle = unknown, Dependencies extends ResourceDependencies = ResourceDependencies, ConsumerHandle = OwnerHandle, Scenarios extends ResourceScenarioSlots = EmptyResourceScenarioSlots> = ResourceHandleExposureDefinition<ConsumerHandle, Scenarios> & {
|
|
92
|
-
readonly acquire: (context: ResourceCreationContext<Dependencies, Scenarios>) => Awaitable<OwnerHandle>;
|
|
93
|
-
readonly dependencies: Dependencies;
|
|
94
|
-
readonly deserializeHandle?: (payload: ResourceProjectionPayload, context: ResourceProjectionContext<Dependencies>) => ConsumerHandle;
|
|
95
|
-
readonly dispose: ResourceDisposal<OwnerHandle, Dependencies, Scenarios>;
|
|
96
|
-
readonly name: Name;
|
|
97
|
-
readonly requirements: readonly ExecutionRequirement[];
|
|
98
|
-
readonly scenarios: Scenarios;
|
|
99
|
-
readonly scope: ResourceScope;
|
|
100
|
-
readonly serializeHandle?: (handle: OwnerHandle, context: ResourceProjectionContext<Dependencies>) => ResourceProjectionPayload;
|
|
101
|
-
readonly [resourceDefinitionBrand]: true;
|
|
102
|
-
};
|
|
103
8
|
export {};
|
|
104
9
|
//# sourceMappingURL=resource-definition-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource-definition-types.d.ts","sourceRoot":"","sources":["../../../../source/resources/resource-definition-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"resource-definition-types.d.ts","sourceRoot":"","sources":["../../../../source/resources/resource-definition-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAER,qBAAqB,wBAQxB,MAAM,gCAAgC,CAAC;MAYlC,MAAmD,cAiBhB,CACnB,QAAqB,QAKR,CAAS,qBAAqB,IAAI,QAAQ,SAAS;IAClF,QAAQ,CAAC,iBAAiB,CAAC,EAAE,CAAC,CAAC,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,KAAK,MAAM,cAAc,CAAC,GAAG,SAAS,CAAC;CACvG,GAAG,cAAc,GACZ,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;AAE/C,MAAM,MAAM,eAAe,CAAC,SAAS,SAAS,oBAAoB,IAAI;IAClE,QAAQ,EAAE,GAAG,IAAI,MAAM,SAAS,GAAG,cAAc,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;CACpE,CAAC;AAEF,MAAM,CAGF,EAIH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource-definition.js","sourceRoot":"","sources":["../../../../source/resources/resource-definition.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"resource-definition.js","sourceRoot":"","sources":["../../../../source/resources/resource-definition.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,EACH,2BAA2B,EAI9B,MAAM,wBAAwB,CAAC;AAIhC,SAAS,QAAQ,CAAC,KAAc;IAC5B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,CAAC;AACvD,CAAC;AAED,SAAS,oBAAoB,CACzB,UAA6C;IAE7C,MAAM,oBAAoB,GAAY,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IAE9E,OAAO,QAAQ,CAAC,oBAAoB,CAAC;QACjC,CAAC,CAAC,MAAM,CAAC,MAAM,CAA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b,YAAY,EAAE,oBAAoB,CAAC,UAAU,CAAC;QAC9C,YAAY,EAAE,sBAAsB,CAAC,UAAU,EAAE,SAAS,CAAC;QAC3D,SAAS;QACT,CAAC,uBAAuB,CAAC,EAAE,IAAa;KAC3C,CAAC,CAAC;AACP,CAAC;AAED,SAAS,iBAAiB,CAAC,QAAiB;IACxC,OAAO,OAAO,QAAQ,KAAK,QAAQ;QAC/B,QAAQ,KAAK,IAAI;QACjB,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,uBAAuB,CAAC,KAAK,IAAI,CAAC;AAChE,CAAC;AAED,MAAM,CAAC,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC/C,cAAc;IACd,iBAAiB;CACpB,CAAC,CAAC"}
|
|
@@ -13,7 +13,6 @@ export declare class ResourceLifecycleError extends Error {
|
|
|
13
13
|
constructor(message: string, options: ResourceLifecycleErrorOptions);
|
|
14
14
|
failures(): readonly ResourceLifecycleFailure[];
|
|
15
15
|
}
|
|
16
|
-
export declare function resourceLifecycleError(message: string, failures: readonly ResourceLifecycleFailure[], cause: unknown): ResourceLifecycleError;
|
|
17
16
|
export declare function lifecycleFailures(results: readonly PromiseSettledResult<unknown>[], fallbackResourceName: string): readonly ResourceLifecycleFailure[];
|
|
18
17
|
export {};
|
|
19
18
|
//# sourceMappingURL=resource-lifecycle-error.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource-lifecycle-error.d.ts","sourceRoot":"","sources":["../../../../source/resources/resource-lifecycle-error.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,sBAAsB,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAErE,MAAM,MAAM,wBAAwB,GAAG;IACnC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,KAAK,EAAE,sBAAsB,CAAC;IACvC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;CACjC,CAAC;AAEF,KAAK,6BAA6B,GAAG;IACjC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,QAAQ,EAAE,SAAS,wBAAwB,EAAE,CAAC;CAC1D,CAAC;AAEF,qBAAa,sBAAuB,SAAQ,KAAK;IAC7C,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAsC;gBAGpE,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,6BAA6B;IAOnC,QAAQ,IAAI,SAAS,wBAAwB,EAAE;CAGzD;AAED,
|
|
1
|
+
{"version":3,"file":"resource-lifecycle-error.d.ts","sourceRoot":"","sources":["../../../../source/resources/resource-lifecycle-error.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,sBAAsB,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAErE,MAAM,MAAM,wBAAwB,GAAG;IACnC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,KAAK,EAAE,sBAAsB,CAAC;IACvC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;CACjC,CAAC;AAEF,KAAK,6BAA6B,GAAG;IACjC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,QAAQ,EAAE,SAAS,wBAAwB,EAAE,CAAC;CAC1D,CAAC;AAEF,qBAAa,sBAAuB,SAAQ,KAAK;IAC7C,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAsC;gBAGpE,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,6BAA6B;IAOnC,QAAQ,IAAI,SAAS,wBAAwB,EAAE;CAGzD;AAED,0BAEI,eAc6B,CAC7B,OAAO,EAAE,SAAS,oBAAoB,CAAC,OAAO,CAAC,EAAE,EACjD,oBAAoB,EAAE,MAAM,GAC7B,SAAS,wBAAwB,EAAE,CAYrC"}
|
|
@@ -12,5 +12,21 @@ export class ResourceLifecycleError extends Error {
|
|
|
12
12
|
export function resourceLifecycleError(message, failures, cause) {
|
|
13
13
|
return new ResourceLifecycleError(message, { cause, failures });
|
|
14
14
|
}
|
|
15
|
-
|
|
15
|
+
function lifecycleFailuresFrom(reason, fallbackResourceName) {
|
|
16
|
+
if (reason instanceof ResourceLifecycleError) {
|
|
17
|
+
return reason.failures();
|
|
18
|
+
}
|
|
19
|
+
return [{ cause: reason, phase: 'acquire', resourceName: fallbackResourceName }];
|
|
20
|
+
}
|
|
21
|
+
export function lifecycleFailures(results, fallbackResourceName) {
|
|
22
|
+
const failures = new Set();
|
|
23
|
+
for (const result of results) {
|
|
24
|
+
if (result.status === 'rejected') {
|
|
25
|
+
for (const failure of lifecycleFailuresFrom(result.reason, fallbackResourceName)) {
|
|
26
|
+
failures.add(failure);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return Array.from(failures);
|
|
31
|
+
}
|
|
16
32
|
//# sourceMappingURL=resource-lifecycle-error.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource-lifecycle-error.js","sourceRoot":"","sources":["../../../../source/resources/resource-lifecycle-error.ts"],"names":[],"mappings":"AAaA,MAAM,OAAO,sBAAuB,SAAQ,KAAK;IAC5B,iBAAiB,CAAsC;IAExE,YACI,OAAe,EACf,OAAsC;QAEtC,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QACxB,IAAI,CAAC,IAAI,GAAG,wBAAwB,CAAC;QACrC,IAAI,CAAC,iBAAiB,GAAG,OAAO,CAAC,QAAQ,CAAC;IAC9C,CAAC;IAEM,QAAQ;QACX,OAAO,IAAI,CAAC,iBAAiB,CAAC;IAClC,CAAC;CACJ;AAED,MAAM,UAAU,sBAAsB,CAClC,OAAe,EACf,QAA6C,EAC7C,KAAc;IAEd,OAAO,IAAI,sBAAsB,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC;AACpE,CAAC"}
|
|
1
|
+
{"version":3,"file":"resource-lifecycle-error.js","sourceRoot":"","sources":["../../../../source/res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AAC;AAChC,CAAC"}
|
|
@@ -1,75 +1,7 @@
|
|
|
1
1
|
import { defaultScenarioBindings, scenarioBindingsForTiming } from "./resource-scenario.js";
|
|
2
2
|
const boundResourceScenarios = new WeakMap();
|
|
3
3
|
const sourceResourceDefinitions = new WeakMap();
|
|
4
|
-
|
|
5
|
-
return value === 'acquire' || value === 'request-routed';
|
|
6
|
-
}
|
|
7
|
-
function isScenarioValues(value) {
|
|
8
|
-
return Array.isArray(value) && value.length > 0 && value.every(function valueIsString(item) {
|
|
9
|
-
return typeof item === 'string';
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
|
-
function isResourceScenarioSlot(value) {
|
|
13
|
-
if (typeof value !== 'object' || value === null) {
|
|
14
|
-
return false;
|
|
15
|
-
}
|
|
16
|
-
const defaultValue = Reflect.get(value, 'default');
|
|
17
|
-
const timing = Reflect.get(value, 'timing');
|
|
18
|
-
const values = Reflect.get(value, 'values');
|
|
19
|
-
return typeof defaultValue === 'string' && isScenarioTiming(timing) && isScenarioValues(values);
|
|
20
|
-
}
|
|
21
|
-
function isResourceDefinition(value) {
|
|
22
|
-
return typeof value === 'object' && value !== null &&
|
|
23
|
-
typeof Reflect.get(value, 'name') === 'string' &&
|
|
24
|
-
typeof Reflect.get(value, 'dependencies') === 'object' &&
|
|
25
|
-
typeof Reflect.get(value, 'scenarios') === 'object';
|
|
26
|
-
}
|
|
27
|
-
export function resourceScenarioOwners(resources) {
|
|
28
|
-
const owners = new Map();
|
|
29
|
-
const visited = new Set();
|
|
30
|
-
function recordScenario(resource, path, name, slot) {
|
|
31
|
-
const existing = owners.get(name);
|
|
32
|
-
if (existing !== undefined && existing.resource !== resource) {
|
|
33
|
-
throw new TypeError(`Scenario slot "${name}" is declared by multiple resources.`);
|
|
34
|
-
}
|
|
35
|
-
owners.set(name, { path, resource, slot });
|
|
36
|
-
}
|
|
37
|
-
function recordOwnedScenarios(resource, path) {
|
|
38
|
-
const scenarios = Reflect.get(resource, 'scenarios');
|
|
39
|
-
if (typeof scenarios !== 'object' || scenarios === null) {
|
|
40
|
-
return;
|
|
41
|
-
}
|
|
42
|
-
for (const [name, slot] of Object.entries(scenarios)) {
|
|
43
|
-
if (isResourceScenarioSlot(slot)) {
|
|
44
|
-
recordScenario(resource, path, name, slot);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
function visitDependencies(resource, path, visitDependency) {
|
|
49
|
-
const dependencies = Reflect.get(resource, 'dependencies');
|
|
50
|
-
if (typeof dependencies !== 'object' || dependencies === null) {
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
for (const key of Object.keys(dependencies)) {
|
|
54
|
-
const property = Object.getOwnPropertyDescriptor(dependencies, key);
|
|
55
|
-
const dependency = property?.value;
|
|
56
|
-
if (isResourceDefinition(dependency)) {
|
|
57
|
-
visitDependency(dependency, [...path, key]);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
function visit(resource, path) {
|
|
62
|
-
if (!visited.has(resource)) {
|
|
63
|
-
visited.add(resource);
|
|
64
|
-
recordOwnedScenarios(resource, path);
|
|
65
|
-
visitDependencies(resource, path, visit);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
for (const [key, resource] of Object.entries(resources)) {
|
|
69
|
-
visit(resource, [key]);
|
|
70
|
-
}
|
|
71
|
-
return owners;
|
|
72
|
-
}
|
|
4
|
+
|
|
73
5
|
export function sourceResourceDefinition(resource) {
|
|
74
6
|
return sourceResourceDefinitions.get(resource) ?? resource;
|
|
75
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource-scenario-binding.js","sourceRoot":"","sources":["../../../../source/resources/resource-scenario-binding.ts"],"names":[],"mappings":"AACA,OAAO,EACH,uBAAuB,EACvB,yBAAyB,EAI5B,MAAM,wBAAwB,CAAC;AAuDhC,MAAM,sBAAsB,GAAG,IAAI,OAAO,EAA2D,CAAC;AACtG,MAAM,yBAAyB,GAAG,IA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