testeranto 0.125.3 → 0.129.0
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/README.md +248 -6
- package/dist/common/src/Node.js +5 -0
- package/dist/common/src/PM/base.js +6 -0
- package/dist/common/src/PM/index.js +0 -1
- package/dist/common/src/PM/main.js +84 -22
- package/dist/common/src/PM/web.js +1 -1
- package/dist/common/src/ReportServer.js +39 -2
- package/dist/common/src/build.js +41 -6
- package/dist/common/src/lib/abstractBase.js +22 -107
- package/dist/common/src/lib/basebuilder.js +20 -21
- package/dist/common/src/lib/classBuilder.js +12 -1
- package/dist/common/src/lib/core.js +1 -8
- package/dist/common/src/lib/index.js +2 -5
- package/dist/common/src/lib/pmProxy.js +294 -0
- package/dist/common/testeranto.config.js +43 -34
- package/dist/common/tsconfig.common.tsbuildinfo +1 -1
- package/dist/module/src/Node.js +5 -0
- package/dist/module/src/PM/base.js +6 -0
- package/dist/module/src/PM/index.js +0 -1
- package/dist/module/src/PM/main.js +84 -22
- package/dist/module/src/PM/web.js +1 -1
- package/dist/module/src/Project.js +6 -6
- package/dist/module/src/ReportClient.js +3 -3
- package/dist/module/src/ReportServer.js +39 -2
- package/dist/module/src/build.js +41 -6
- package/dist/module/src/lib/abstractBase.js +22 -107
- package/dist/module/src/lib/basebuilder.js +20 -21
- package/dist/module/src/lib/classBuilder.js +12 -1
- package/dist/module/src/lib/core.js +1 -8
- package/dist/module/src/lib/index.js +2 -5
- package/dist/module/src/lib/pmProxy.js +285 -0
- package/dist/module/testeranto.config.js +40 -34
- package/dist/module/tsconfig.module.tsbuildinfo +1 -1
- package/dist/prebuild/Project.css +1 -26
- package/dist/prebuild/Project.js +4 -4
- package/dist/prebuild/ReportClient.css +1 -26
- package/dist/prebuild/ReportClient.js +3 -3
- package/dist/prebuild/ReportServer.mjs +1 -2
- package/dist/prebuild/TestReport.css +1 -26
- package/dist/prebuild/build.mjs +42 -7
- package/dist/prebuild/run.mjs +95 -20
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/src/PM/web.d.ts +1 -1
- package/dist/types/src/Types.d.ts +2 -1
- package/dist/types/src/lib/abstractBase.d.ts +4 -6
- package/dist/types/src/lib/index.d.ts +1 -1
- package/dist/types/src/lib/pmProxy.d.ts +7 -0
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +14 -7
- package/src/Init.ts +1 -0
- package/src/Node.ts +6 -0
- package/src/PM/base.ts +8 -0
- package/src/PM/index.ts +2 -7
- package/src/PM/main.ts +128 -26
- package/src/PM/web.ts +3 -3
- package/src/Project.tsx +6 -6
- package/src/ReportClient.tsx +3 -3
- package/src/ReportServer.ts +43 -2
- package/src/Types.ts +3 -2
- package/src/build.ts +47 -6
- package/src/lib/abstractBase.ts +45 -184
- package/src/lib/basebuilder.ts +25 -28
- package/src/lib/classBuilder.ts +13 -2
- package/src/lib/core.ts +10 -14
- package/src/lib/index.ts +6 -29
- package/src/lib/pmProxy.ts +366 -0
- package/testeranto/bundles/node/{react → redux}/metafile.json +186 -254
- package/testeranto/bundles/pure/redux/metafile.json +554 -0
- package/testeranto/bundles/web/redux/metafile.json +504 -0
- package/testeranto/bundles/web/{react/src/SubPackages/react-test-renderer/component → redux}/test/web.html +1 -1
- package/testeranto/index.html +1 -1
- package/testeranto/reports/{react → redux}/config.json +26 -10
- package/testeranto/reports/{react → redux}/index.html +5 -5
- package/testeranto/reports/redux/summary.json +20 -0
- package/testeranto.config.ts +46 -34
- package/tsc.log +3 -1
- package/testeranto/bundles/node/react/src/SubPackages/react-test-renderer/component/test/node.mjs +0 -24687
- package/testeranto/bundles/pure/react/metafile.json +0 -8
- package/testeranto/bundles/pure/react/src/SubPackages/react-test-renderer/component/test/pure.mjs +0 -24625
- package/testeranto/bundles/web/react/metafile.json +0 -8
- package/testeranto/bundles/web/react/src/SubPackages/react-test-renderer/component/test/web.mjs +0 -21290
- package/testeranto/reports/react/src/SubPackages/react-test-renderer/component/test/node/node/console_log.txt +0 -0
- package/testeranto/reports/react/src/SubPackages/react-test-renderer/component/test/pure/pure/bdd_errors.txt +0 -1
- package/testeranto/reports/react/src/SubPackages/react-test-renderer/component/test/pure/pure/featurePrompt.txt +0 -0
- package/testeranto/reports/react/src/SubPackages/react-test-renderer/component/test/pure/pure/lint_errors.json +0 -3381
- package/testeranto/reports/react/src/SubPackages/react-test-renderer/component/test/pure/pure/littleBoard.html +0 -20
- package/testeranto/reports/react/src/SubPackages/react-test-renderer/component/test/pure/pure/log.txt +0 -40
- package/testeranto/reports/react/src/SubPackages/react-test-renderer/component/test/pure/pure/prompt.txt +0 -24
- package/testeranto/reports/react/src/SubPackages/react-test-renderer/component/test/pure/pure/tests.json +0 -132
- package/testeranto/reports/react/src/SubPackages/react-test-renderer/component/test/pure/pure/type_errors.txt +0 -17
- package/testeranto/reports/react/src/SubPackages/react-test-renderer/component/test/web/web/bdd_errors.txt +0 -1
- package/testeranto/reports/react/src/SubPackages/react-test-renderer/component/test/web/web/console_log.txt +0 -1
- package/testeranto/reports/react/src/SubPackages/react-test-renderer/component/test/web/web/lint_errors.json +0 -2947
- package/testeranto/reports/react/src/SubPackages/react-test-renderer/component/test/web/web/littleBoard.html +0 -20
- package/testeranto/reports/react/src/SubPackages/react-test-renderer/component/test/web/web/log.txt +0 -40
- package/testeranto/reports/react/src/SubPackages/react-test-renderer/component/test/web/web/prompt.txt +0 -23
- package/testeranto/reports/react/src/SubPackages/react-test-renderer/component/test/web/web/tests.json +0 -132
- package/testeranto/reports/react/src/SubPackages/react-test-renderer/component/test/web/web/type_errors.txt +0 -18
- package/testeranto/reports/react/summary.json +0 -8
|
@@ -16,7 +16,7 @@ export declare class PM_Web {
|
|
|
16
16
|
$(selector: string): boolean;
|
|
17
17
|
isDisabled(selector: string): Promise<boolean>;
|
|
18
18
|
getAttribute(selector: string, attribute: string): any;
|
|
19
|
-
getValue(selector:
|
|
19
|
+
getValue(selector: number): any;
|
|
20
20
|
focusOn(selector: string): any;
|
|
21
21
|
typeInto(value: string): any;
|
|
22
22
|
page(): string | undefined;
|
|
@@ -62,7 +62,7 @@ export type Ibdd_in<IInput, ISubject, IStore, ISelection, IGiven, IWhen, IThen>
|
|
|
62
62
|
when: IWhen;
|
|
63
63
|
then: IThen;
|
|
64
64
|
};
|
|
65
|
-
export type IPluginFactory = (register
|
|
65
|
+
export type IPluginFactory = (register?: (entrypoint: string, sources: string[]) => any, entrypoints?: string[]) => Plugin;
|
|
66
66
|
export type IRunTime = `node` | `web` | "pure";
|
|
67
67
|
export type ITestTypes = [string, IRunTime, {
|
|
68
68
|
ports: number;
|
|
@@ -79,6 +79,7 @@ export type ITestconfig = {
|
|
|
79
79
|
src: string;
|
|
80
80
|
tests: ITestTypes[];
|
|
81
81
|
webPlugins: IPluginFactory[];
|
|
82
|
+
reportDomain: string;
|
|
82
83
|
};
|
|
83
84
|
export type IBuiltConfig = {
|
|
84
85
|
buildDir: string;
|
|
@@ -73,7 +73,7 @@ export declare abstract class BaseGiven<I extends IT = IT> {
|
|
|
73
73
|
abstract givenThat(subject: I["isubject"], testResourceConfiguration: any, artifactory: ITestArtifactory, givenCB: I["given"], initialValues: any, pm: IPM): Promise<I["istore"]>;
|
|
74
74
|
afterEach(store: I["istore"], key: string, artifactory: ITestArtifactory, pm: IPM): Promise<unknown>;
|
|
75
75
|
abstract uberCatcher(e: any): any;
|
|
76
|
-
give(subject: I["isubject"], key: string, testResourceConfiguration: ITTestResourceConfiguration, tester: (t: Awaited<I["then"]> | undefined) => boolean, artifactory: ITestArtifactory, tLog: ITLog, pm: IPM, suiteNdx: number): Promise<I["istore"]>;
|
|
76
|
+
give(subject: I["isubject"], key: string, testResourceConfiguration: ITTestResourceConfiguration, tester: (t: Awaited<I["then"]> | undefined) => boolean, artifactory: ITestArtifactory, tLog: ITLog, pm: IPM, suiteNdx: number): Promise<boolean | I["istore"]>;
|
|
77
77
|
}
|
|
78
78
|
export declare abstract class BaseWhen<I extends IT> {
|
|
79
79
|
name: string;
|
|
@@ -89,15 +89,14 @@ export declare abstract class BaseWhen<I extends IT> {
|
|
|
89
89
|
}
|
|
90
90
|
export declare abstract class BaseThen<I extends IT> {
|
|
91
91
|
name: string;
|
|
92
|
-
thenCB: (storeState: I["iselection"]) => I["then"]
|
|
93
|
-
go: (storeState: I["iselection"]) => I["then"];
|
|
92
|
+
thenCB: (storeState: I["iselection"]) => Promise<I["then"]>;
|
|
94
93
|
error: boolean;
|
|
95
|
-
constructor(name: string, thenCB: (val: I["iselection"]) => I["then"]);
|
|
94
|
+
constructor(name: string, thenCB: (val: I["iselection"]) => Promise<I["then"]>);
|
|
96
95
|
toObj(): {
|
|
97
96
|
name: string;
|
|
98
97
|
error: boolean;
|
|
99
98
|
};
|
|
100
|
-
abstract butThen(store: I["istore"], thenCB: (s: I["iselection"]) => I["isubject"]
|
|
99
|
+
abstract butThen(store: I["istore"], thenCB: (s: I["iselection"]) => Promise<I["isubject"]>, testResourceConfiguration: ITTestResourceConfiguration, pm: IPM, ...args: any[]): Promise<I["iselection"]>;
|
|
101
100
|
test(store: I["istore"], testResourceConfiguration: any, tLog: ITLog, pm: IPM, filepath: string): Promise<I["then"] | undefined>;
|
|
102
101
|
check(): void;
|
|
103
102
|
}
|
|
@@ -114,7 +113,6 @@ export declare abstract class BaseCheck<I extends IT = IT> {
|
|
|
114
113
|
toObj(): {
|
|
115
114
|
key: string;
|
|
116
115
|
name: string;
|
|
117
|
-
functionAsString: string;
|
|
118
116
|
features: string[];
|
|
119
117
|
};
|
|
120
118
|
afterEach(store: I["istore"], key: string, artifactory: ITestArtifactory, pm: IPM): Promise<unknown>;
|
|
@@ -3,7 +3,7 @@ import { PM_Node } from "../PM/node.js";
|
|
|
3
3
|
import { PM_Web } from "../PM/web.js";
|
|
4
4
|
import { Ibdd_in, ITestInterface, ITestconfig, IBuiltConfig, IRunTime, ITestTypes, IT, OT } from "../Types.js";
|
|
5
5
|
import { IGivens, BaseCheck, BaseSuite } from "./abstractBase.js";
|
|
6
|
-
export declare const BaseTestInterface: ITestInterface<
|
|
6
|
+
export declare const BaseTestInterface: ITestInterface<IT>;
|
|
7
7
|
export declare const DefaultTestInterface: (p: Partial<ITestInterface<any>>) => ITestInterface<any>;
|
|
8
8
|
export type ITTestResourceConfiguration = {
|
|
9
9
|
name: string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IPM } from "./types";
|
|
2
|
+
export declare const butThenProxy: (pm: IPM, filepath: string) => IPM;
|
|
3
|
+
export declare const andWhenProxy: (pm: IPM, filepath: string) => IPM;
|
|
4
|
+
export declare const afterEachProxy: (pm: IPM, suite: string, given: string) => IPM;
|
|
5
|
+
export declare const beforeEachProxy: (pm: IPM, suite: string) => IPM;
|
|
6
|
+
export declare const beforeAllProxy: (pm: IPM, suite: string) => IPM;
|
|
7
|
+
export declare const afterAllProxy: (pm: IPM, suite: string) => IPM;
|