@overkill-dev/test 0.0.12 → 0.0.14

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 (59) hide show
  1. package/package.json +18 -12
  2. package/packages/test/authoring-input.js +34 -0
  3. package/packages/test/authoring-input.js.map +1 -0
  4. package/packages/test/authoring-source-locations.js +71 -0
  5. package/packages/test/authoring-source-locations.js.map +1 -0
  6. package/packages/test/authoring-test-data.d.ts +58 -0
  7. package/packages/test/authoring-test-data.d.ts.map +1 -0
  8. package/packages/test/authoring-test-data.js +194 -0
  9. package/packages/test/authoring-test-data.js.map +1 -0
  10. package/packages/test/command-line-runner.js +39 -4
  11. package/packages/test/command-line-runner.js.map +1 -1
  12. package/packages/test/compatibility.entry-point.d.ts +4 -0
  13. package/packages/test/compatibility.entry-point.d.ts.map +1 -0
  14. package/packages/test/compatibility.entry-point.js +2 -0
  15. package/packages/test/compatibility.entry-point.js.map +1 -0
  16. package/packages/test/config.entry-point.d.ts +1 -1
  17. package/packages/test/config.entry-point.d.ts.map +1 -1
  18. package/packages/test/harness-authoring.d.ts +18 -0
  19. package/packages/test/harness-authoring.d.ts.map +1 -0
  20. package/packages/test/harness-authoring.js +25 -0
  21. package/packages/test/harness-authoring.js.map +1 -0
  22. package/packages/test/interaction-transcript.d.ts +39 -0
  23. package/packages/test/interaction-transcript.d.ts.map +1 -0
  24. package/packages/test/interaction-transcript.js +302 -0
  25. package/packages/test/interaction-transcript.js.map +1 -0
  26. package/packages/test/reporters.entry-point.d.ts +1 -0
  27. package/packages/test/reporters.entry-point.d.ts.map +1 -1
  28. package/packages/test/resource-wrapper-composition.js +313 -0
  29. package/packages/test/resource-wrapper-composition.js.map +1 -0
  30. package/packages/test/resource-wrapper-data.d.ts +39 -0
  31. package/packages/test/resource-wrapper-data.d.ts.map +1 -0
  32. package/packages/test/resource-wrapper-data.js +101 -0
  33. package/packages/test/resource-wrapper-data.js.map +1 -0
  34. package/packages/test/resource-wrapper-runtime-scope.js +44 -0
  35. package/packages/test/resource-wrapper-runtime-scope.js.map +1 -0
  36. package/packages/test/resource-wrapper-session.js +3 -0
  37. package/packages/test/resource-wrapper-session.js.map +1 -0
  38. package/packages/test/resources.entry-point.d.ts +20 -1
  39. package/packages/test/resources.entry-point.d.ts.map +1 -1
  40. package/packages/test/resources.entry-point.js +46 -2
  41. package/packages/test/resources.entry-point.js.map +1 -1
  42. package/packages/test/table-authoring.d.ts +19 -0
  43. package/packages/test/table-authoring.d.ts.map +1 -0
  44. package/packages/test/table-authoring.js +77 -0
  45. package/packages/test/table-authoring.js.map +1 -0
  46. package/packages/test/test-authoring.d.ts +68 -0
  47. package/packages/test/test-authoring.d.ts.map +1 -0
  48. package/packages/test/test-authoring.js +212 -0
  49. package/packages/test/test-authoring.js.map +1 -0
  50. package/packages/test/test.entry-point.d.ts +10 -35
  51. package/packages/test/test.entry-point.d.ts.map +1 -1
  52. package/packages/test/test.entry-point.js +3 -250
  53. package/packages/test/test.entry-point.js.map +1 -1
  54. package/packages/test/throwing-test-authoring.d.ts +15 -0
  55. package/packages/test/throwing-test-authoring.d.ts.map +1 -0
  56. package/packages/test/throwing-test-authoring.js +47 -0
  57. package/packages/test/throwing-test-authoring.js.map +1 -0
  58. package/readme.md +372 -12
  59. package/sbom.cdx.json +61 -44
@@ -0,0 +1,19 @@
1
+ import { type Table, type TestAnnotationsInput, type TestBody, type TestControlsInput, type TestScope } from '@overkill-dev/engine';
2
+ import { type AuthoringAnnotations, type AuthoringControls } from './authoring-test-data.ts';
3
+ import { type ResourceWrapperAction } from './resource-wrapper-data.ts';
4
+ export type ParameterizedTestScope<Row, Scope extends TestScope = TestScope> = Scope & {
5
+ readonly parameters: Row;
6
+ };
7
+ export type TableTestBody<Row, Scope extends TestScope = TestScope> = (scope: ParameterizedTestScope<Row, Scope>) => ReturnType<TestBody>;
8
+ type AnyTableTestBody = (scope: never) => ReturnType<TestBody>;
9
+ export type TableDefinition<Row, ControlsType extends TestControlsInput = AuthoringControls, Body extends AnyTableTestBody = TableTestBody<Row>> = {
10
+ readonly annotations?: AuthoringAnnotations;
11
+ readonly caseTitle?: (parameters: Row, index: number) => string;
12
+ readonly cases: readonly Row[];
13
+ readonly controls?: ControlsType;
14
+ readonly test: Body;
15
+ readonly title: string;
16
+ };
17
+ export declare function createAuthoredTable<Row, ControlsType extends TestControlsInput, Body extends AnyTableTestBody = TableTestBody<Row>>(facadeAnnotations: TestAnnotationsInput, facadeControls: TestControlsInput, definition: TableDefinition<Row, ControlsType, Body>, facadeActions?: readonly ResourceWrapperAction[]): Table;
18
+ export {};
19
+ //# sourceMappingURL=table-authoring.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table-authoring.d.ts","sourceRoot":"","sources":["../../../../../source/packages/test/table-authoring.ts"],"names":[],"mappings":"AAAA,OAAO,EAGH,KAAK,KAAK,EAEV,KAAK,oBAAoB,EACzB,KAAK,QAAQ,EACb,KAAK,iBAAiB,EAItB,KAAK,SAAS,EACjB,MAAM,sBAAiC,CAAC;AACzC,OAAO,EAKH,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACzB,MAAM,0BAA0B,CAAC;AAQlC,OAAO,EAEH,KAAK,qBAAqB,EAC7B,MAAM,4BAA4B,CAAC;AAEpC,MAAM,MAAM,sBAAsB,CAC9B,GAAG,EACH,KAAK,SAAS,SAAS,GAAG,SAAS,IACnC,KAAK,GAAG;IACR,QAAQ,CAAC,UAAU,EAAE,GAAG,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,aAAa,CACrB,GAAG,EACH,KAAK,SAAS,SAAS,GAAG,SAAS,IACnC,CACA,KAAK,EAAE,sBAAsB,CAAC,GAAG,EAAE,KAAK,CAAC,KACxC,UAAU,CAAC,QAAQ,CAAC,CAAC;AAE1B,KAAK,gBAAgB,GAAG,CAAC,KAAK,EAAE,KAAK,KAAK,UAAU,CAAC,QAAQ,CAAC,CAAC;AAE/D,MAAM,MAAM,eAAe,CACvB,GAAG,EACH,YAAY,SAAS,iBAAiB,GAAG,iBAAiB,EAC1D,IAAI,SAAS,gBAAgB,GAAG,aAAa,CAAC,GAAG,CAAC,IAClD;IACA,QAAQ,CAAC,WAAW,CAAC,EAAE,oBAAoB,CAAC;IAC5C,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC,UAAU,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAChE,QAAQ,CAAC,KAAK,EAAE,SAAS,GAAG,EAAE,CAAC;IAC/B,QAAQ,CAAC,QAAQ,CAAC,EAAE,YAAY,CAAC;IACjC,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC;IACpB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CAC1B,CAAC;AA6GF,wBAAgB,mBAAmB,CAC/B,GAAG,EACH,YAAY,SAAS,iBAAiB,EACtC,IAAI,SAAS,gBAAgB,GAAG,aAAa,CAAC,GAAG,CAAC,EAElD,iBAAiB,EAAE,oBAAoB,EACvC,cAAc,EAAE,iBAAiB,EACjC,UAAU,EAAE,eAAe,CAAC,GAAG,EAAE,YAAY,EAAE,IAAI,CAAC,EACpD,aAAa,GAAE,SAAS,qBAAqB,EAAO,GACrD,KAAK,CAUP"}
@@ -0,0 +1,77 @@
1
+ import { createTable, attachTestBodyResourceAttachments, hasTestBodyResourceAttachments, readTestBodyResourceAttachments } from "@overkill-dev/engine";
2
+ import { createAuthoringAnnotations, createAuthoringControls, readAuthoringAnnotations, readAuthoringControls } from "./authoring-test-data.js";
3
+ import { activeMacroSourceLocations, definitionLocationsForAuthoringCall, runWithForwardedSourceLocations } from "./authoring-source-locations.js";
4
+ import { readAuthoringRecord, readAuthoringString, readAuthoringTestBody } from "./authoring-input.js";
5
+ import { attachComposedResourceActions } from "./resource-wrapper-composition.js";
6
+ import { scopeWrapperStep } from "./resource-wrapper-data.js";
7
+ const tableArgumentsError = 'table() requires ({ title, cases, annotations?, controls?, caseTitle?, test }).';
8
+ function defaultCaseTitle(index) {
9
+ return `case ${index + 1}`;
10
+ }
11
+ function tableCaseTitle(caseTitle, parameters, index) {
12
+ const title = caseTitle === null ? defaultCaseTitle(index) : caseTitle(parameters, index);
13
+ if (typeof title !== 'string') {
14
+ throw new TypeError('table() caseTitle must return a string.');
15
+ }
16
+ return title;
17
+ }
18
+ function tableCaseBody(definition, parameters, sourceLocations, facadeActions) {
19
+ const caseBody = attachComposedResourceActions([
20
+ ...facadeActions,
21
+ scopeWrapperStep('table() parameters', function addTableParameters() {
22
+ return { parameters };
23
+ }, 'replace-existing')
24
+ ], definition.test, 'table');
25
+ const body = async function runTableCase(scope) {
26
+ return await runWithForwardedSourceLocations(sourceLocations, async function runMacroGeneratedTableCase() {
27
+ return await caseBody(scope);
28
+ });
29
+ };
30
+ return hasTestBodyResourceAttachments(caseBody)
31
+ ? attachTestBodyResourceAttachments(body, readTestBodyResourceAttachments(caseBody))
32
+ : body;
33
+ }
34
+ function ensureTableDefinitionShape(definition) {
35
+ if (definition.caseTitle !== undefined && typeof definition.caseTitle !== 'function') {
36
+ throw new TypeError(tableArgumentsError);
37
+ }
38
+ if (!Array.isArray(definition.cases)) {
39
+ throw new TypeError(tableArgumentsError);
40
+ }
41
+ readAuthoringTestBody(definition.test);
42
+ }
43
+ function readTableDefinition(definition) {
44
+ const runtimeDefinition = readAuthoringRecord(definition, tableArgumentsError);
45
+ ensureTableDefinitionShape(runtimeDefinition);
46
+ return {
47
+ annotations: readAuthoringAnnotations(runtimeDefinition.annotations ?? {}),
48
+ caseTitle: definition.caseTitle ?? null,
49
+ cases: definition.cases,
50
+ controls: readAuthoringControls(runtimeDefinition.controls ?? {}),
51
+ test: definition.test,
52
+ title: readAuthoringString(runtimeDefinition.title, tableArgumentsError)
53
+ };
54
+ }
55
+ function tableCases(definition, facadeActions) {
56
+ const sourceLocations = activeMacroSourceLocations();
57
+ return definition.cases.map(function createTableCase(parameters, index) {
58
+ return {
59
+ annotations: {},
60
+ body: tableCaseBody(definition, parameters, sourceLocations, facadeActions),
61
+ controls: {},
62
+ parameters,
63
+ title: tableCaseTitle(definition.caseTitle, parameters, index)
64
+ };
65
+ });
66
+ }
67
+ export function createAuthoredTable(facadeAnnotations, facadeControls, definition, facadeActions = []) {
68
+ const tableDefinition = readTableDefinition(definition);
69
+ return createTable({
70
+ annotations: createAuthoringAnnotations(facadeAnnotations, tableDefinition.annotations),
71
+ cases: tableCases(tableDefinition, facadeActions),
72
+ controls: createAuthoringControls(facadeControls, tableDefinition.controls),
73
+ definitionLocations: definitionLocationsForAuthoringCall(),
74
+ title: tableDefinition.title
75
+ });
76
+ }
77
+ //# sourceMappingURL=table-authoring.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table-authoring.js","sourceRoot":"","sources":["../../../../../source/packages/test/table-authoring.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,WAAW,EAOX,iCAAiC,EACjC,8BAA8B,EAC9B,+BAA+B,EAElC,MAAM,sBAAiC,CAAC;AACzC,OAAO,EACH,0BAA0B,EAC1B,uBAAuB,EACvB,wBAAwB,EACxB,qBAAqB,EAGxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACH,0BAA0B,EAC1B,mCAAmC,EACnC,+BAA+B,EAClC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AACvG,OAAO,EAAE,6BAA6B,EAAE,MAAM,mCAAmC,CAAC;AAClF,OAAO,EACH,gBAAgB,EAEnB,MAAM,4BAA4B,CAAC;AA0CpC,MAAM,mBAAmB,GAAG,iFAAiF,CAAC;AAE9G,SAAS,gBAAgB,CAAC,KAAa;IACnC,OAAO,QAAQ,KAAK,GAAG,CAAC,EAAE,CAAC;AAC/B,CAAC;AAED,SAAS,cAAc,CACnB,SAA8D,EAC9D,UAAe,EACf,KAAa;IAEb,MAAM,KAAK,GAAG,SAAS,KAAK,IAAI,CAAC,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAA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eAAe,CAAC,WAAW,CAAC;QACvF,KAAK,EAAE,UAAU,CAAC,eAAe,EAAE,aAAa,CAAC;QACjD,QAAQ,EAAE,uBAAuB,CAAC,cAAc,EAAE,eAAe,CAAC,QAAQ,CAAC;QAC3E,mBAAmB,EAAE,mCAAmC,EAAE;QAC1D,KAAK,EAAE,eAAe,CAAC,KAAK;KAC/B,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,68 @@
1
+ import { type Suite, type Table, type TestBody, type TestCase, type TestControlsInput, type TestNode, type TestScope } from '@overkill-dev/engine';
2
+ import type { ResourceMap, RuntimeGraph } from '@overkill-dev/resources';
3
+ import { type AuthoringAnnotations, type AuthoringControls, type FacadeScope, type RunIfMain, type RunIfMainOptions, type TestFacadeDefinition } from './authoring-test-data.ts';
4
+ import { type ParameterizedTestScope, type TableDefinition } from './table-authoring.ts';
5
+ type TestDefinition<ControlsType extends TestControlsInput = AuthoringControls, Scope extends TestScope = TestScope> = {
6
+ readonly annotations?: AuthoringAnnotations;
7
+ readonly body: (scope: Scope) => ReturnType<TestBody>;
8
+ readonly controls?: ControlsType;
9
+ readonly title: string;
10
+ };
11
+ type SkippedTestDefinition<ControlsType extends TestControlsInput = AuthoringControls> = {
12
+ readonly annotations?: AuthoringAnnotations;
13
+ readonly controls?: ControlsType;
14
+ readonly reason: string;
15
+ readonly title: string;
16
+ };
17
+ type SuiteDefinition<ControlsType extends TestControlsInput = AuthoringControls> = {
18
+ readonly annotations?: AuthoringAnnotations;
19
+ readonly children: readonly TestNode[];
20
+ readonly controls?: ControlsType;
21
+ readonly title: string;
22
+ };
23
+ type MacroFactory<MacroParameters extends readonly unknown[], Node extends TestNode> = (...parameters: MacroParameters) => Node;
24
+ type ParameterizedTestBody<Data> = (scope: TestScope, data: Data) => ReturnType<TestBody>;
25
+ type ObjectSkippedTestAuthorInput<ControlsType extends TestControlsInput> = readonly [
26
+ definition: Readonly<SkippedTestDefinition<ControlsType>>
27
+ ];
28
+ type ObjectSuiteAuthorInput<ControlsType extends TestControlsInput> = readonly [
29
+ definition: Readonly<SuiteDefinition<ControlsType>>
30
+ ];
31
+ type PositionalSkippedTestAuthorInput = readonly [title: string, reason: string];
32
+ type PositionalSuiteAuthorInput = readonly [title: string, children: readonly TestNode[]];
33
+ type ObjectScopedTestAuthorInput<ControlsType extends TestControlsInput, Scope extends TestScope> = readonly [
34
+ definition: Readonly<TestDefinition<ControlsType, Scope>>
35
+ ];
36
+ type PositionalTestAuthorInput<Scope extends TestScope> = readonly [
37
+ title: string,
38
+ body: (scope: Scope) => ReturnType<TestBody>
39
+ ];
40
+ type TestAuthor<ControlsType extends TestControlsInput, Scope extends TestScope> = (...input: ObjectScopedTestAuthorInput<ControlsType, Scope> | PositionalTestAuthorInput<Scope>) => TestCase;
41
+ type SkippedTestAuthor<ControlsType extends TestControlsInput> = (...input: ObjectSkippedTestAuthorInput<ControlsType> | PositionalSkippedTestAuthorInput) => TestCase;
42
+ type SuiteAuthor<ControlsType extends TestControlsInput> = (...input: ObjectSuiteAuthorInput<ControlsType> | PositionalSuiteAuthorInput) => Suite;
43
+ type TableAuthor<ControlsType extends TestControlsInput, Scope extends TestScope> = <Row>(definition: TableDefinition<Row, ControlsType, (scope: ParameterizedTestScope<Row, Scope>) => ReturnType<TestBody>>) => Table;
44
+ export type TestFacade<ControlsType extends TestControlsInput = AuthoringControls, Scope extends TestScope = TestScope> = {
45
+ readonly defineMacro: typeof defineMacro;
46
+ readonly defineParameterizedTestBody: typeof defineParameterizedTestBody;
47
+ readonly runIfMain: RunIfMain;
48
+ readonly skippedTest: SkippedTestAuthor<ControlsType>;
49
+ readonly suite: SuiteAuthor<ControlsType>;
50
+ readonly table: TableAuthor<ControlsType, Scope>;
51
+ readonly test: TestAuthor<ControlsType, Scope>;
52
+ };
53
+ export declare function test(...input: readonly [
54
+ definition: Readonly<TestDefinition>
55
+ ]): TestCase;
56
+ export declare function test(...input: readonly [title: string, body: TestBody]): TestCase;
57
+ export declare function skippedTest(...input: readonly [definition: Readonly<SkippedTestDefinition>]): TestCase;
58
+ export declare function skippedTest(...input: readonly [title: string, reason: string]): TestCase;
59
+ export declare function suite(...input: readonly [definition: Readonly<SuiteDefinition>]): Suite;
60
+ export declare function suite(...input: readonly [title: string, children: readonly TestNode[]]): Suite;
61
+ export declare function table<Row>(definition: TableDefinition<Row>): Table;
62
+ export declare function defineMacro<const MacroParameters extends readonly unknown[], Node extends TestNode>(factory: MacroFactory<MacroParameters, Node>): MacroFactory<MacroParameters, Node>;
63
+ export declare function defineParameterizedTestBody<Data>(body: ParameterizedTestBody<Data>): (data: Data) => TestBody;
64
+ export declare function runIfMain(meta: Readonly<ImportMeta>, testNode: TestNode, options?: RunIfMainOptions): Promise<void>;
65
+ export declare function createTestFacade(definition?: TestFacadeDefinition<null, Readonly<Record<string, never>>, Readonly<Record<string, never>>>): TestFacade;
66
+ export declare function createTestFacade<Runtime extends RuntimeGraph | null = null, Resources extends ResourceMap = Readonly<Record<string, never>>, MappedScope extends Readonly<Record<string, unknown>> = Readonly<Record<string, never>>>(definition: TestFacadeDefinition<Runtime, Resources, MappedScope>): TestFacade<AuthoringControls, FacadeScope<Runtime, Resources, MappedScope>>;
67
+ export {};
68
+ //# sourceMappingURL=test-authoring.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test-authoring.d.ts","sourceRoot":"","sources":["../../../../../source/packages/test/test-authoring.ts"],"names":[],"mappings":"AAAA,OAAO,EAKH,KAAK,KAAK,EACV,KAAK,KAAK,EAEV,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,iBAAiB,EACtB,KAAK,QAAQ,EACb,KAAK,SAAS,EACjB,MAAM,sBAAiC,CAAC;AACzC,OAAO,KAAK,EACR,WAAW,EACX,YAAY,EACf,MAAM,yBAAuC,CAAC;AAO/C,OAAO,EAMH,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAEhB,KAAK,SAAS,EACd,KAAK,gBAAgB,EACrB,KAAK,o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GAAG,IAAI,GAAG,IAAI,EAC1C,SAAS,SAAS,WAAW,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,EAC/D,WAAW,SAAS,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,EAEvF,UAAU,EAAE,oBAAoB,CAAC,OAAO,EAAE,SAAS,EAAE,WAAW,CAAC,GAClE,UAAU,CAAC,iBAAiB,EAAE,WAAW,CAAC,OAAO,EAAE,SAAS,EAAE,WAAW,CAAC,CAAC,CAAC"}
@@ -0,0 +1,212 @@
1
+ import { createSuite, createSkippedTestCase, createTestCase, ownsTestNode } from "@overkill-dev/engine";
2
+ import { assertionBodyForActiveMacro, defineParameterizedTestBodyFactory, definitionLocationsForAuthoringCall, runMacroWithDefinitionLocations } from "./authoring-source-locations.js";
3
+ import { createAuthoringAnnotations, createAuthoringControls, readAuthoringAnnotations, readAuthoringControls, readTestFacadeDefinition } from "./authoring-test-data.js";
4
+ import { readAuthoringRecord, readAuthoringString, readAuthoringTestBody } from "./authoring-input.js";
5
+ import { createAuthoredTable } from "./table-authoring.js";
6
+ import { attachComposedResourceActions } from "./resource-wrapper-composition.js";
7
+ import { resourcesWrapperStep, runtimeWrapperStep, scopeWrapperStep } from "./resource-wrapper-data.js";
8
+ const singleArgumentCount = 1;
9
+ const positionalArgumentCount = 2;
10
+ const testArgumentsError = 'test() requires (title, body) or ({ title, annotations?, controls?, body }).';
11
+ const skippedTestArgumentsError = 'skippedTest() requires (title, reason) or ({ title, annotations?, controls?, reason }).';
12
+ const suiteArgumentsError = 'suite() requires (title, children) or ({ title, annotations?, controls?, children }).';
13
+ function readReason(value) {
14
+ if (typeof value !== 'string') {
15
+ throw new TypeError(skippedTestArgumentsError);
16
+ }
17
+ return value;
18
+ }
19
+ function readChildren(value, message) {
20
+ if (!Array.isArray(value)) {
21
+ throw new TypeError(message);
22
+ }
23
+ const children = [];
24
+ for (const child of value) {
25
+ children.push(child);
26
+ }
27
+ return children;
28
+ }
29
+ function readTestDefinition(value) {
30
+ const definition = readAuthoringRecord(value, testArgumentsError);
31
+ return {
32
+ annotations: readAuthoringAnnotations(definition.annotations ?? {}),
33
+ body: readAuthoringTestBody(definition.body),
34
+ controls: readAuthoringControls(definition.controls ?? {}),
35
+ title: readAuthoringString(definition.title, testArgumentsError)
36
+ };
37
+ }
38
+ function readSkippedTestDefinition(value) {
39
+ const definition = readAuthoringRecord(value, skippedTestArgumentsError);
40
+ return {
41
+ annotations: readAuthoringAnnotations(definition.annotations ?? {}),
42
+ controls: readAuthoringControls(definition.controls ?? {}),
43
+ reason: readReason(definition.reason),
44
+ title: readAuthoringString(definition.title, skippedTestArgumentsError)
45
+ };
46
+ }
47
+ function readSuiteDefinition(value) {
48
+ const definition = readAuthoringRecord(value, suiteArgumentsError);
49
+ return {
50
+ annotations: readAuthoringAnnotations(definition.annotations ?? {}),
51
+ children: readChildren(definition.children, suiteArgumentsError),
52
+ controls: readAuthoringControls(definition.controls ?? {}),
53
+ title: readAuthoringString(definition.title, suiteArgumentsError)
54
+ };
55
+ }
56
+ function composeFacadeBody(facadeActions, body) {
57
+ return facadeActions.length === 0
58
+ ? body
59
+ : attachComposedResourceActions(facadeActions, body, 'createTestFacade');
60
+ }
61
+ function createAuthoredTest(facadeAnnotations, facadeControls, facadeActions, ...input) {
62
+ if (input.length === singleArgumentCount) {
63
+ const definition = readTestDefinition(input[0]);
64
+ return createTestCase({
65
+ annotations: createAuthoringAnnotations(facadeAnnotations, definition.annotations),
66
+ body: assertionBodyForActiveMacro(composeFacadeBody(facadeActions, definition.body)),
67
+ controls: createAuthoringControls(facadeControls, definition.controls),
68
+ definitionLocations: definitionLocationsForAuthoringCall(),
69
+ title: definition.title
70
+ });
71
+ }
72
+ if (input.length === positionalArgumentCount) {
73
+ const [name, body] = input;
74
+ const testBody = readAuthoringTestBody(body);
75
+ return createTestCase({
76
+ annotations: createAuthoringAnnotations(facadeAnnotations, {}),
77
+ body: assertionBodyForActiveMacro(composeFacadeBody(facadeActions, testBody)),
78
+ controls: createAuthoringControls(facadeControls, {}),
79
+ definitionLocations: definitionLocationsForAuthoringCall(),
80
+ title: readAuthoringString(name, testArgumentsError)
81
+ });
82
+ }
83
+ throw new TypeError(testArgumentsError);
84
+ }
85
+ export function test(...input) {
86
+ return createAuthoredTest({}, {}, [], ...input);
87
+ }
88
+ function createAuthoredSkippedTest(facadeAnnotations, facadeControls, ...input) {
89
+ if (input.length === singleArgumentCount) {
90
+ const definition = readSkippedTestDefinition(input[0]);
91
+ return createSkippedTestCase({
92
+ annotations: createAuthoringAnnotations(facadeAnnotations, definition.annotations),
93
+ controls: createAuthoringControls(facadeControls, definition.controls),
94
+ definitionLocations: definitionLocationsForAuthoringCall(),
95
+ reason: definition.reason,
96
+ title: definition.title
97
+ });
98
+ }
99
+ if (input.length === positionalArgumentCount) {
100
+ const [title, reason] = input;
101
+ return createSkippedTestCase({
102
+ annotations: createAuthoringAnnotations(facadeAnnotations, {}),
103
+ controls: createAuthoringControls(facadeControls, {}),
104
+ definitionLocations: definitionLocationsForAuthoringCall(),
105
+ reason: readReason(reason),
106
+ title: readAuthoringString(title, skippedTestArgumentsError)
107
+ });
108
+ }
109
+ throw new TypeError(skippedTestArgumentsError);
110
+ }
111
+ export function skippedTest(...input) {
112
+ return createAuthoredSkippedTest({}, {}, ...input);
113
+ }
114
+ function createAuthoredSuite(facadeAnnotations, facadeControls, ...input) {
115
+ if (input.length === singleArgumentCount) {
116
+ const definition = readSuiteDefinition(input[0]);
117
+ return createSuite({
118
+ annotations: createAuthoringAnnotations(facadeAnnotations, definition.annotations),
119
+ children: definition.children,
120
+ controls: createAuthoringControls(facadeControls, definition.controls),
121
+ definitionLocations: definitionLocationsForAuthoringCall(),
122
+ title: definition.title
123
+ });
124
+ }
125
+ if (input.length === positionalArgumentCount) {
126
+ const [name, children] = input;
127
+ return createSuite({
128
+ annotations: createAuthoringAnnotations(facadeAnnotations, {}),
129
+ children: readChildren(children, suiteArgumentsError),
130
+ controls: createAuthoringControls(facadeControls, {}),
131
+ definitionLocations: definitionLocationsForAuthoringCall(),
132
+ title: readAuthoringString(name, suiteArgumentsError)
133
+ });
134
+ }
135
+ throw new TypeError(suiteArgumentsError);
136
+ }
137
+ export function suite(...input) {
138
+ return createAuthoredSuite({}, {}, ...input);
139
+ }
140
+ export function table(definition) {
141
+ return createAuthoredTable({}, {}, definition);
142
+ }
143
+ function createMacroNode(factory, parameters) {
144
+ const node = factory(...parameters);
145
+ if (!ownsTestNode(node)) {
146
+ throw new TypeError('defineMacro() factory must return a default-engine TestNode value.');
147
+ }
148
+ return node;
149
+ }
150
+ export function defineMacro(factory) {
151
+ if (typeof factory !== 'function') {
152
+ throw new TypeError('defineMacro() requires a factory function.');
153
+ }
154
+ return function runMacro(...parameters) {
155
+ return runMacroWithDefinitionLocations(function createNode() {
156
+ return createMacroNode(factory, parameters);
157
+ });
158
+ };
159
+ }
160
+ export function defineParameterizedTestBody(body) {
161
+ if (typeof body !== 'function') {
162
+ throw new TypeError('defineParameterizedTestBody() requires a body function.');
163
+ }
164
+ return defineParameterizedTestBodyFactory(body);
165
+ }
166
+ export async function runIfMain(meta, testNode, options) {
167
+ if (!meta.main) {
168
+ return;
169
+ }
170
+ const runModule = await import("@overkill-dev/run");
171
+ await runModule.runIfMain(meta, testNode, options);
172
+ }
173
+ function createFacadeActions(facadeDefinition) {
174
+ const actions = [];
175
+ if (facadeDefinition.runtime !== null) {
176
+ actions.push(runtimeWrapperStep(facadeDefinition.runtime));
177
+ }
178
+ if (facadeDefinition.resources !== null) {
179
+ actions.push(resourcesWrapperStep(facadeDefinition.resources));
180
+ }
181
+ if (facadeDefinition.mapScope !== null) {
182
+ actions.push(scopeWrapperStep('createTestFacade() mapScope', facadeDefinition.mapScope));
183
+ }
184
+ return Object.freeze(actions);
185
+ }
186
+ function createTestFacadeFromDefinition(facadeDefinition) {
187
+ return {
188
+ defineMacro,
189
+ defineParameterizedTestBody,
190
+ runIfMain,
191
+ skippedTest(...input) {
192
+ return createAuthoredSkippedTest(facadeDefinition.annotations, facadeDefinition.controls, ...input);
193
+ },
194
+ suite(...input) {
195
+ return createAuthoredSuite(facadeDefinition.annotations, facadeDefinition.controls, ...input);
196
+ },
197
+ table(tableDefinition) {
198
+ return createAuthoredTable(facadeDefinition.annotations, facadeDefinition.controls, tableDefinition, facadeDefinition.actions);
199
+ },
200
+ test(...input) {
201
+ return createAuthoredTest(facadeDefinition.annotations, facadeDefinition.controls, facadeDefinition.actions, ...input);
202
+ }
203
+ };
204
+ }
205
+ export function createTestFacade(definition) {
206
+ const facadeDefinition = readTestFacadeDefinition(definition);
207
+ return createTestFacadeFromDefinition({
208
+ ...facadeDefinition,
209
+ actions: createFacadeActions(facadeDefinition)
210
+ });
211
+ }
212
+ //# sourceMappingURL=test-authoring.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test-authoring.js","sourceRoot":"","sources":["../../../../../source/packages/test/test-authoring.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,WAAW,EACX,qBAAqB,EACrB,cAAc,EACd,YAAY,EASf,MAAM,sBAAiC,CAAC;AAKzC,OAAO,EACH,2BAA2B,EAC3B,kCAAkC,EAClC,mCAAmC,EACnC,+BAA+B,EAClC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACH,0BAA0B,EAC1B,uBAAuB,EACvB,wBAAwB,EACxB,qBAAqB,EACrB,wBAAwB,EAQ3B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACH,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACxB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACH,mBAAmB,EAGtB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,6BAA6B,EAAE,MAAM,mCAAmC,CAAC;AAClF,OAAO,EACH,oBAAoB,EACpB,kBAAkB,EAClB,gBAAgB,EAEnB,MAAM,4B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,EAAE,CAAC;QACrC,OAAO,CAAC,IAAI,CAAC,gBAAgB,CAAC,6BAA6B,EAAE,gBAAgB,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC7F,CAAC;IAED,OAAO,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AAClC,CAAC;AAED,SAAS,8BAA8B,CAErC,gBAA8C;IAC5C,OAAO;QACH,WAAW;QACX,2BAA2B;QAC3B,SAAS;QACT,WAAW,CAAC,GAAG,KAAK;YAChB,OAAO,yBAAyB,CAC5B,gBAAgB,CAAC,WAAW,EAC5B,gBAAgB,CAAC,QAAQ,EACzB,GAAG,KAAK,CACX,CAAC;QACN,CAAC;QACD,KAAK,CAAC,GAAG,KAAK;YACV,OAAO,mBAAmB,CACtB,gBAAgB,CAAC,WAAW,EAC5B,gBAAgB,CAAC,QAAQ,EACzB,GAAG,KAAK,CACX,CAAC;QACN,CAAC;QACD,KAAK,CACD,eAIC;YAED,OAAO,mBAAmB,CACtB,gBAAgB,CAAC,WAAW,EAC5B,gBAAgB,CAAC,QAAQ,EACzB,eAAe,EACf,gBAAgB,CAAC,OAAO,CAC3B,CAAC;QACN,CAAC;QACD,IAAI,CAAC,GAAG,KAAK;YACT,OAAO,kBAAkB,CACrB,gBAAgB,CAAC,WAAW,EAC5B,gBAAgB,CAAC,QAAQ,EACzB,gBAAgB,CAAC,OAAO,EACxB,GAAG,KAAK,CACX,CAAC;QACN,CAAC;KACJ,CAAC;AACN,CAAC;AAYD,MAAM,UAAU,gBAAgB,CAAC,UAAiC;IAC9D,MAAM,gBAAgB,GAAG,wBAAwB,CAAC,UAAU,CAAC,CAAC;IAE9D,OAAO,8BAA8B,CAAC;QAClC,GAAG,gBAAgB;QACnB,OAAO,EAAE,mBAAmB,CAAC,gBAAgB,CAAC;KACjD,CAAC,CAAC;AACP,CAAC"}
@@ -1,38 +1,13 @@
1
- import { type DefinedOutputRenderer, type DefinedReporter, type Metadata, type Suite, type Table, type TestBody, type TestCase, type TestNode, type TestScope } from '@overkill-dev/engine';
1
+ export { createTestFacade, defineMacro, defineParameterizedTestBody, runIfMain, skippedTest, suite, table, test } from './test-authoring.ts';
2
+ export type { TestFacade } from './test-authoring.ts';
3
+ export type { RunIfMain, RunIfMainOptions, RunIfMainRootOptions } from './authoring-test-data.ts';
4
+ export type { ParameterizedTestScope, TableDefinition, TableTestBody } from './table-authoring.ts';
5
+ export { defineHarness } from './harness-authoring.ts';
6
+ export type { DefinedHarness, ExactHarnessOverrides, HarnessOverrides, HarnessPartFactories, HarnessPartFactory, HarnessParts } from './harness-authoring.ts';
7
+ export { createTranscript, recordAsyncSink, recordSink, transcriptUsage } from './interaction-transcript.ts';
8
+ export type { AsyncDisposableTranscript, DisposableTranscript, Transcript, TranscriptEntry, TranscriptUsageAssertions } from './interaction-transcript.ts';
2
9
  export { doubleUsage, rule, testAsyncDisposable, testAsyncIterable, testAsyncIterator, testDisposable, testDouble, testIterable, testIterator } from '@overkill-dev/doubles';
3
10
  export type { AsyncDisposableConfiguration, AsyncIterableConfiguration, AsyncIteratorConfiguration, AsyncIteratorSource, DisposableConfiguration, DoubleCall, DoubleConstruction, DoubleHistory, DoubleInteraction, DoubleInvocation, DoubleIteratorEvent, DoubleIteratorReturnEvent, DoubleIteratorThrowEvent, DoubleIteratorYieldEvent, DoubleResult, DoubleReturnedResult, DoubleThrownResult, DoubleUsageAssertions, ProtocolMethodConfiguration, RuleFactory, SyncIterableConfiguration, SyncIteratorConfiguration, SyncIteratorSource, TestAsyncDisposable, TestAsyncDisposableFactory, TestAsyncIterable, TestAsyncIterableFactory, TestAsyncIterator, TestAsyncIteratorFactory, TestDisposable, TestDisposableFactory, TestDouble, TestDoubleFactory, TestIterable, TestIterableFactory, TestIterator, TestIteratorFactory } from '@overkill-dev/doubles';
4
- type UnavailableAuthoringApi = (...parameters: readonly unknown[]) => never;
5
- export type RunIfMainRootOptions = {
6
- readonly metadata: Metadata;
7
- readonly title: string;
8
- };
9
- export type RunIfMainOptions = {
10
- readonly outputRenderer?: DefinedOutputRenderer;
11
- readonly reporters?: readonly DefinedReporter[];
12
- readonly root?: RunIfMainRootOptions;
13
- };
14
- export type RunIfMain = (meta: Readonly<ImportMeta>, testNode: TestNode, options?: RunIfMainOptions) => Promise<void>;
15
- export type ParameterizedTestScope<Row> = TestScope & {
16
- readonly parameters: Row;
17
- };
18
- export type TableTestBody<Row> = (scope: ParameterizedTestScope<Row>) => ReturnType<TestBody>;
19
- export type TableDefinition<Row> = {
20
- readonly caseTitle?: (parameters: Row, index: number) => string;
21
- readonly cases: readonly Row[];
22
- readonly metadata?: Metadata;
23
- readonly test: TableTestBody<Row>;
24
- readonly title: string;
25
- };
26
- type MacroFactory<MacroParameters extends readonly unknown[], Node extends TestNode> = (...parameters: MacroParameters) => Node;
27
- type ParameterizedTestBody<Data> = (scope: TestScope, data: Data) => ReturnType<TestBody>;
28
- export declare function test(...input: readonly [definition: Readonly<Pick<TestCase, 'body' | 'metadata' | 'title'>>]): TestCase;
29
- export declare function test(...input: readonly [title: string, body: TestBody]): TestCase;
30
- export declare function suite(...input: readonly [definition: Readonly<Pick<Suite, 'children' | 'metadata' | 'title'>>]): Suite;
31
- export declare function suite(...input: readonly [title: string, children: readonly TestNode[]]): Suite;
32
- export declare function table<Row>(definition: TableDefinition<Row>): Table;
33
- export declare const createTestFacade: UnavailableAuthoringApi;
34
- export declare function defineMacro<const MacroParameters extends readonly unknown[], Node extends TestNode>(factory: MacroFactory<MacroParameters, Node>): MacroFactory<MacroParameters, Node>;
35
- export declare function defineParameterizedTestBody<Data>(body: ParameterizedTestBody<Data>): (data: Data) => TestBody;
36
- export declare function runIfMain(meta: Readonly<ImportMeta>, testNode: TestNode, options?: RunIfMainOptions): Promise<void>;
37
- export type { Metadata, OutputRenderer, Reporter, Suite, Table, TestBody, TestCase, TestNode, TestScope, TestScopeAssertContext } from '@overkill-dev/engine';
11
+ export type { AuthoringAnnotations, AuthoringControls, TestFacadeDefinition } from './authoring-test-data.ts';
12
+ export type { InFlightTask, OutputRenderer, Reporter, Suite, Table, TestBody, TestCase, TestFamily, TestNode, TestScope, TestScopeAssertContext } from '@overkill-dev/engine';
38
13
  //# sourceMappingURL=test.entry-point.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"test.entry-point.d.ts","sourceRoot":"","sources":["../../../../../source/packages/test/test.entry-point.ts"],"names":[],"mappings":"AAAA,OAAO,EAMH,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,KAAK,QAAQ,EAKb,KAAK,KAAK,EACV,KAAK,KAAK,EAEV,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,SAAS,EACjB,MAAM,sBAAiC,CAAC;AAEzC,OAAO,EACH,WAAW,EACX,IAAI,EACJ,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EACd,UAAU,EACV,YAAY,EACZ,YAAY,EACf,MAAM,uBAAmC,CAAC;AAC3C,YAAY,EACR,4BAA4B,EAC5B,0BAA0B,EAC1B,0BAA0B,EAC1B,mBAAmB,EACnB,uBAAuB,EACvB,UAAU,EACV,kBAAkB,EAClB,aAAa,EACb,iBAAiB,EACjB,gBAAgB,EAChB,mBAAmB,EACnB,yBAAyB,EACzB,wBAAwB,EACxB,wBAAwB,EACxB,YAAY,EACZ,oBAAoB,EACpB,kBAAkB,EAClB,qBAAqB,EACrB,2BAA2B,EAC3B,WAAW,EACX,yBAAyB,EACzB,yBAAyB,EACzB,kBAAkB,EAClB,mBAAmB,EACnB,0BAA0B,EAC1B,iBAAiB,EACjB,wBAAwB,EACxB,iBAAiB,EACjB,wBAAwB,EACxB,cAAc,EACd,qBAAqB,EACrB,UAAU,EACV,iBAAiB,EACjB,YAAY,EACZ,mBAAmB,EACnB,YAAY,EACZ,mBAAmB,EACtB,MAAM,uBAAmC,CAAC;AAE3C,KAAK,uBAAuB,GAAG,CAAC,GAAG,UAAU,EAAE,SAAS,OAAO,EAAE,KAAK,KAAK,CAAC;AAE5E,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,wBAAsB,SAAS,CAC3B,IAAI,EAAE,QAAQ,CAAC,UAAU,CAAC,EAC1B,QAAQ,EAAE,QAAQ,EAClB,OAAO,CAAC,EAAE,gBAAgB,GAC3B,OAAO,CAAC,IAAI,CAAC,CAQf;AAED,YAAY,EACR,QAAQ,EACR,cAAc,EACd,QAAQ,EACR,KAAK,EACL,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,sBAAsB,EACzB,MAAM,sBAAiC,CAAC"}
1
+ {"version":3,"file":"test.entry-point.d.ts","sourceRoot":"","sources":["../../../../../source/packages/test/test.entry-point.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,gBAAgB,EAChB,WAAW,EACX,2BAA2B,EAC3B,SAAS,EACT,WAAW,EACX,KAAK,EACL,KAAK,EACL,IAAI,EACP,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACtD,YAAY,EACR,SAAS,EACT,gBAAgB,EAChB,oBAAoB,EACvB,MAAM,0BAA0B,CAAC;AAClC,YAAY,EACR,sBAAsB,EACtB,eAAe,EACf,aAAa,EAChB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,YAAY,EACR,cAAc,EACd,qBAAqB,EACrB,gBAAgB,EAChB,oBAAoB,EACpB,kBAAkB,EAClB,YAAY,EACf,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACH,gBAAgB,EAChB,eAAe,EACf,UAAU,EACV,eAAe,EAClB,MAAM,6BAA6B,CAAC;AACrC,YAAY,EACR,yBAAyB,EACzB,oBAAoB,EACpB,UAAU,EACV,eAAe,EACf,yBAAyB,EAC5B,MAAM,6BAA6B,CAAC;AAErC,OAAO,EACH,WAAW,EACX,IAAI,EACJ,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EACd,UAAU,EACV,YAAY,EACZ,YAAY,EACf,MAAM,uBA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