testeranto 0.94.0 → 0.110.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 +1 -0
- package/bundle.js +80 -33
- package/dist/common/{src/Init.js → Init.js} +28 -0
- package/dist/common/{src/PM → PM}/main.js +272 -111
- package/dist/common/{src/PM → PM}/node.js +20 -5
- package/dist/common/{src/PM → PM}/web.js +19 -4
- package/dist/common/ReportServer.js +22 -0
- package/dist/common/{src/SubPackages → SubPackages}/react/jsx/index.js +0 -12
- package/dist/common/{src/SubPackages → SubPackages}/react/jsx/node.js +1 -6
- package/dist/common/{src/SubPackages → SubPackages}/react-dom/component/node.js +3 -16
- package/dist/common/{src/SubPackages → SubPackages}/react-dom/component/web.js +3 -3
- package/dist/common/{src/SubPackages → SubPackages}/react-dom/jsx/node.js +1 -1
- package/dist/common/{src/SubPackages → SubPackages}/react-dom/jsx/web.js +41 -30
- package/dist/common/{src/SubPackages → SubPackages}/react-test-renderer/MemoExoticComponent/node.js +17 -7
- package/dist/common/{src/SubPackages → SubPackages}/react-test-renderer/component/interface.js +17 -7
- package/dist/common/{src/SubPackages → SubPackages}/react-test-renderer/fc/node.js +17 -7
- package/dist/common/{src/SubPackages → SubPackages}/react-test-renderer/fc/web.js +17 -7
- package/dist/common/{src/SubPackages → SubPackages}/react-test-renderer/jsx/index.js +18 -14
- package/dist/common/{src/SubPackages → SubPackages}/react-test-renderer/jsx-promised/index.js +17 -7
- package/dist/common/build.js +222 -0
- package/dist/common/{src/defaultConfig.js → defaultConfig.js} +1 -0
- package/dist/common/esbuildConfigs/eslint-formatter-testeranto.js +6 -0
- package/dist/common/esbuildConfigs/inputFilesPlugin.js +27 -0
- package/dist/common/{src/esbuildConfigs → esbuildConfigs}/node.js +3 -14
- package/dist/common/{src/esbuildConfigs → esbuildConfigs}/web.js +3 -14
- package/dist/common/{src/init-docs.js → init-docs.js} +20 -10
- package/dist/common/{src/lib → lib}/abstractBase.js +20 -92
- package/dist/common/{src/lib → lib}/basebuilder.js +23 -10
- package/dist/common/{src/lib → lib}/classBuilder.js +1 -3
- package/dist/common/{src/lib → lib}/core.js +26 -10
- package/dist/common/{src/lib → lib}/index.js +0 -1
- package/dist/common/run.js +297 -0
- package/dist/common/tsconfig.common.tsbuildinfo +1 -1
- package/dist/common/utils.js +43 -0
- package/dist/module/Footer.js +4 -0
- package/dist/module/Init.js +63 -0
- package/dist/module/{src/PM → PM}/main.js +253 -102
- package/dist/module/{src/PM → PM}/node.js +20 -5
- package/dist/module/{src/PM → PM}/web.js +19 -4
- package/dist/module/ReportClient.js +97 -0
- package/dist/module/ReportServer.js +17 -0
- package/dist/module/SubPackages/react/jsx/index.js +15 -0
- package/dist/module/{src/SubPackages → SubPackages}/react/jsx/node.js +1 -6
- package/dist/module/{src/SubPackages → SubPackages}/react-dom/component/node.js +3 -16
- package/dist/module/{src/SubPackages → SubPackages}/react-dom/component/web.js +3 -3
- package/dist/module/{src/SubPackages → SubPackages}/react-dom/jsx/node.js +3 -3
- package/dist/module/{src/SubPackages → SubPackages}/react-dom/jsx/web.js +24 -23
- package/dist/module/{src/SubPackages → SubPackages}/react-test-renderer/jsx/index.js +1 -7
- package/dist/module/TestReport.js +91 -0
- package/dist/module/build.js +184 -0
- package/dist/module/{src/defaultConfig.js → defaultConfig.js} +1 -0
- package/dist/module/esbuildConfigs/eslint-formatter-testeranto.js +3 -0
- package/dist/module/esbuildConfigs/inputFilesPlugin.js +22 -0
- package/dist/module/{src/esbuildConfigs → esbuildConfigs}/node.js +3 -14
- package/dist/module/{src/esbuildConfigs → esbuildConfigs}/web.js +3 -14
- package/dist/module/{src/init-docs.js → init-docs.js} +1 -1
- package/dist/module/{src/lib → lib}/abstractBase.js +20 -92
- package/dist/module/{src/lib → lib}/basebuilder.js +23 -10
- package/dist/module/{src/lib → lib}/classBuilder.js +1 -3
- package/dist/module/{src/lib → lib}/core.js +26 -10
- package/dist/module/{src/lib → lib}/index.js +0 -1
- package/dist/module/run.js +259 -0
- package/dist/module/tsconfig.module.tsbuildinfo +1 -1
- package/dist/module/utils.js +29 -0
- package/dist/prebuild/ReportClient.css +11367 -0
- package/dist/prebuild/ReportClient.js +23641 -0
- package/dist/prebuild/ReportServer.mjs +16 -0
- package/dist/prebuild/TestReport.css +11367 -0
- package/dist/prebuild/TestReport.js +27484 -0
- package/dist/prebuild/build.mjs +376 -0
- package/dist/prebuild/esbuildConfigs/eslint-formatter-testeranto.mjs +9 -0
- package/dist/prebuild/init-docs.mjs +64 -8
- package/dist/prebuild/{run-tests.mjs → run.mjs} +501 -182
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/types/Node.d.ts +12 -0
- package/dist/types/{src/PM → PM}/index.d.ts +11 -3
- package/dist/types/{src/PM → PM}/main.d.ts +24 -15
- package/dist/types/{src/PM → PM}/node.d.ts +11 -6
- package/dist/types/{src/PM → PM}/web.d.ts +11 -7
- package/dist/types/SubPackages/react/component/node.d.ts +7 -0
- package/dist/types/SubPackages/react/component/web.d.ts +7 -0
- package/dist/types/SubPackages/react/jsx/index.d.ts +12 -0
- package/dist/types/SubPackages/react/jsx/node.d.ts +4 -0
- package/dist/types/SubPackages/react/jsx/web.d.ts +4 -0
- package/dist/types/SubPackages/react-dom/component/node.d.ts +11 -0
- package/dist/types/SubPackages/react-dom/component/web.d.ts +20 -0
- package/dist/types/SubPackages/react-dom/jsx/index.d.ts +6 -0
- package/dist/types/SubPackages/react-dom/jsx/node.d.ts +7 -0
- package/dist/types/SubPackages/react-dom/jsx/web.d.ts +5 -0
- package/dist/types/SubPackages/react-test-renderer/MemoExoticComponent/node.d.ts +6 -0
- package/dist/types/SubPackages/react-test-renderer/component/index.d.ts +13 -0
- package/dist/types/SubPackages/react-test-renderer/component/node.d.ts +4 -0
- package/dist/types/SubPackages/react-test-renderer/component/web.d.ts +4 -0
- package/dist/types/SubPackages/react-test-renderer/fc/node.d.ts +8 -0
- package/dist/types/SubPackages/react-test-renderer/fc/web.d.ts +9 -0
- package/dist/types/SubPackages/react-test-renderer/jsx/index.d.ts +16 -0
- package/dist/types/SubPackages/react-test-renderer/jsx/node.d.ts +9 -0
- package/dist/types/SubPackages/react-test-renderer/jsx/web.d.ts +9 -0
- package/dist/types/SubPackages/react-test-renderer/jsx-promised/index.d.ts +15 -0
- package/dist/types/SubPackages/react-test-renderer/jsx-promised/node.d.ts +5 -0
- package/dist/types/SubPackages/react-test-renderer/jsx-promised/web.d.ts +5 -0
- package/dist/types/Types.d.ts +61 -0
- package/dist/types/Web.d.ts +9 -0
- package/dist/types/defaultConfig.d.ts +3 -0
- package/dist/types/esbuildConfigs/eslint-formatter-testeranto.d.ts +2 -0
- package/dist/types/{src/esbuildConfigs → esbuildConfigs}/index.d.ts +1 -1
- package/dist/types/{src/esbuildConfigs → esbuildConfigs}/inputFilesPlugin.d.ts +0 -1
- package/dist/types/{src/esbuildConfigs → esbuildConfigs}/node.d.ts +1 -1
- package/dist/types/{src/esbuildConfigs → esbuildConfigs}/web.d.ts +1 -1
- package/dist/types/lib/abstractBase.d.ts +110 -0
- package/dist/types/lib/basebuilder.d.ts +27 -0
- package/dist/types/lib/classBuilder.d.ts +7 -0
- package/dist/types/lib/core.d.ts +7 -0
- package/dist/types/lib/index.d.ts +83 -0
- package/dist/types/lib/types.d.ts +14 -0
- package/dist/types/run.d.ts +1 -0
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/utils.d.ts +9 -0
- package/package.json +50 -39
- package/src/Footer.tsx +4 -0
- package/src/Init.ts +48 -0
- package/src/Node.ts +23 -17
- package/src/PM/index.ts +13 -9
- package/src/PM/main.ts +337 -139
- package/src/PM/node.ts +43 -8
- package/src/PM/web.ts +34 -6
- package/src/ReportClient.tsx +155 -0
- package/src/ReportServer.ts +21 -0
- package/src/SubPackages/react/component/node.ts +68 -24
- package/src/SubPackages/react/component/web.ts +68 -25
- package/src/SubPackages/react/jsx/index.ts +39 -18
- package/src/SubPackages/react/jsx/node.ts +23 -10
- package/src/SubPackages/react/jsx/web.ts +27 -14
- package/src/SubPackages/react-dom/component/node.ts +42 -50
- package/src/SubPackages/react-dom/component/web.ts +28 -10
- package/src/SubPackages/react-dom/jsx/node.ts +54 -56
- package/src/SubPackages/react-dom/jsx/web.ts +55 -42
- package/src/SubPackages/react-test-renderer/MemoExoticComponent/node.ts +23 -7
- package/src/SubPackages/react-test-renderer/component/index.ts +38 -5
- package/src/SubPackages/react-test-renderer/component/node.ts +24 -5
- package/src/SubPackages/react-test-renderer/component/web.ts +22 -5
- package/src/SubPackages/react-test-renderer/fc/node.ts +41 -7
- package/src/SubPackages/react-test-renderer/fc/web.ts +43 -11
- package/src/SubPackages/react-test-renderer/jsx/index.ts +39 -16
- package/src/SubPackages/react-test-renderer/jsx/node.ts +22 -5
- package/src/SubPackages/react-test-renderer/jsx/web.ts +22 -5
- package/src/SubPackages/react-test-renderer/jsx-promised/index.ts +39 -6
- package/src/SubPackages/react-test-renderer/jsx-promised/node.ts +27 -10
- package/src/SubPackages/react-test-renderer/jsx-promised/web.ts +26 -12
- package/src/TestReport.tsx +176 -0
- package/src/Types.ts +131 -129
- package/src/Web.ts +24 -18
- package/src/build.ts +240 -0
- package/src/defaultConfig.ts +2 -1
- package/src/esbuildConfigs/eslint-formatter-testeranto.ts +5 -0
- package/src/esbuildConfigs/featuresPlugin.ts +0 -1
- package/src/esbuildConfigs/index.ts +1 -1
- package/src/esbuildConfigs/inputFilesPlugin.ts +2 -114
- package/src/esbuildConfigs/node.ts +7 -19
- package/src/esbuildConfigs/web.ts +6 -21
- package/src/init-docs.ts +2 -1
- package/src/lib/abstractBase.ts +140 -195
- package/src/lib/basebuilder.ts +57 -45
- package/src/lib/classBuilder.ts +15 -15
- package/src/lib/core.ts +44 -35
- package/src/lib/index.ts +47 -98
- package/src/lib/readme.md +12 -0
- package/src/lib/types.ts +40 -231
- package/src/run.ts +398 -0
- package/src/style.css +8 -0
- package/src/utils.ts +74 -2
- package/tsc.log +106 -0
- package/Bundle.Dockerfile +0 -52
- package/bin/init-docs.js +0 -24
- package/dist/common/dist/module/src/Init.js +0 -40
- package/dist/common/src/Aider.js +0 -143
- package/dist/common/src/Project.js +0 -227
- package/dist/common/src/Puppeteer.js +0 -111
- package/dist/common/src/SubPackages/puppeteer.js +0 -21
- package/dist/common/src/build-tests.js +0 -39
- package/dist/common/src/esbuildConfigs/features.js +0 -14
- package/dist/common/src/esbuildConfigs/inputFilesPlugin.js +0 -87
- package/dist/common/src/esbuildConfigs/report.js +0 -14
- package/dist/common/src/esbuildConfigs/tests.js +0 -13
- package/dist/common/src/run-tests.js +0 -39
- package/dist/common/src/utils.js +0 -16
- package/dist/common/testeranto.js +0 -15
- package/dist/module/src/Aider.js +0 -136
- package/dist/module/src/Init.js +0 -35
- package/dist/module/src/Project.js +0 -220
- package/dist/module/src/Puppeteer.js +0 -106
- package/dist/module/src/SubPackages/puppeteer.js +0 -16
- package/dist/module/src/SubPackages/react/jsx/index.js +0 -27
- package/dist/module/src/build-tests.js +0 -11
- package/dist/module/src/esbuildConfigs/features.js +0 -12
- package/dist/module/src/esbuildConfigs/inputFilesPlugin.js +0 -82
- package/dist/module/src/esbuildConfigs/report.js +0 -14
- package/dist/module/src/esbuildConfigs/tests.js +0 -11
- package/dist/module/src/run-tests.js +0 -11
- package/dist/module/src/utils.js +0 -9
- package/dist/module/testeranto.js +0 -13
- package/dist/prebuild/build-tests.mjs +0 -553
- package/dist/types/dist/module/src/Init.d.ts +0 -2
- package/dist/types/src/Aider.d.ts +0 -1
- package/dist/types/src/Node.d.ts +0 -13
- package/dist/types/src/Project.d.ts +0 -12
- package/dist/types/src/Puppeteer.d.ts +0 -2
- package/dist/types/src/SubPackages/puppeteer.d.ts +0 -6
- package/dist/types/src/SubPackages/react/component/node.d.ts +0 -7
- package/dist/types/src/SubPackages/react/component/web.d.ts +0 -7
- package/dist/types/src/SubPackages/react/jsx/index.d.ts +0 -12
- package/dist/types/src/SubPackages/react/jsx/node.d.ts +0 -4
- package/dist/types/src/SubPackages/react/jsx/web.d.ts +0 -4
- package/dist/types/src/SubPackages/react-dom/component/node.d.ts +0 -12
- package/dist/types/src/SubPackages/react-dom/component/web.d.ts +0 -11
- package/dist/types/src/SubPackages/react-dom/jsx/index.d.ts +0 -7
- package/dist/types/src/SubPackages/react-dom/jsx/node.d.ts +0 -6
- package/dist/types/src/SubPackages/react-dom/jsx/web.d.ts +0 -5
- package/dist/types/src/SubPackages/react-test-renderer/MemoExoticComponent/node.d.ts +0 -5
- package/dist/types/src/SubPackages/react-test-renderer/component/index.d.ts +0 -13
- package/dist/types/src/SubPackages/react-test-renderer/component/node.d.ts +0 -8
- package/dist/types/src/SubPackages/react-test-renderer/component/web.d.ts +0 -3
- package/dist/types/src/SubPackages/react-test-renderer/fc/node.d.ts +0 -8
- package/dist/types/src/SubPackages/react-test-renderer/fc/web.d.ts +0 -8
- package/dist/types/src/SubPackages/react-test-renderer/jsx/index.d.ts +0 -17
- package/dist/types/src/SubPackages/react-test-renderer/jsx/node.d.ts +0 -8
- package/dist/types/src/SubPackages/react-test-renderer/jsx/web.d.ts +0 -8
- package/dist/types/src/SubPackages/react-test-renderer/jsx-promised/index.d.ts +0 -16
- package/dist/types/src/SubPackages/react-test-renderer/jsx-promised/node.d.ts +0 -4
- package/dist/types/src/SubPackages/react-test-renderer/jsx-promised/web.d.ts +0 -4
- package/dist/types/src/Types.d.ts +0 -51
- package/dist/types/src/Web.d.ts +0 -10
- package/dist/types/src/defaultConfig.d.ts +0 -3
- package/dist/types/src/esbuildConfigs/features.d.ts +0 -4
- package/dist/types/src/esbuildConfigs/report.d.ts +0 -0
- package/dist/types/src/esbuildConfigs/tests.d.ts +0 -4
- package/dist/types/src/lib/abstractBase.d.ts +0 -110
- package/dist/types/src/lib/basebuilder.d.ts +0 -27
- package/dist/types/src/lib/classBuilder.d.ts +0 -7
- package/dist/types/src/lib/core.d.ts +0 -8
- package/dist/types/src/lib/index.d.ts +0 -60
- package/dist/types/src/lib/types.d.ts +0 -68
- package/dist/types/src/utils.d.ts +0 -2
- package/dist/types/testeranto.d.ts +0 -16
- package/docker-compose.yml +0 -37
- package/src/Aider.ts +0 -168
- package/src/Project.ts +0 -292
- package/src/Puppeteer.ts +0 -143
- package/src/SubPackages/puppeteer.ts +0 -51
- package/src/build-tests.ts +0 -12
- package/src/esbuildConfigs/features.ts +0 -17
- package/src/esbuildConfigs/report.ts +0 -15
- package/src/esbuildConfigs/tests.ts +0 -14
- package/src/run-tests.ts +0 -12
- package/testeranto.ts +0 -13
- package/dist/common/{src/Node.js → Node.js} +0 -0
- package/dist/common/{src/PM → PM}/index.js +0 -0
- package/dist/common/{src/SubPackages → SubPackages}/react/component/node.js +0 -0
- package/dist/common/{src/SubPackages → SubPackages}/react/component/web.js +0 -0
- package/dist/common/{src/SubPackages → SubPackages}/react/jsx/web.js +0 -0
- package/dist/common/{src/SubPackages → SubPackages}/react-dom/jsx/index.js +0 -0
- package/dist/common/{src/SubPackages → SubPackages}/react-test-renderer/component/index.js +0 -0
- package/dist/common/{src/SubPackages → SubPackages}/react-test-renderer/component/node.js +0 -0
- package/dist/common/{src/SubPackages → SubPackages}/react-test-renderer/component/web.js +0 -0
- package/dist/common/{src/SubPackages → SubPackages}/react-test-renderer/jsx/node.js +0 -0
- package/dist/common/{src/SubPackages → SubPackages}/react-test-renderer/jsx/web.js +0 -0
- package/dist/common/{src/SubPackages → SubPackages}/react-test-renderer/jsx-promised/node.js +1 -1
- package/dist/common/{src/SubPackages → SubPackages}/react-test-renderer/jsx-promised/web.js +0 -0
- package/dist/common/{src/Types.js → Types.js} +0 -0
- package/dist/common/{src/Web.js → Web.js} +0 -0
- package/dist/common/{src/esbuildConfigs → esbuildConfigs}/featuresPlugin.js +0 -0
- package/dist/common/{src/esbuildConfigs → esbuildConfigs}/index.js +0 -0
- package/dist/common/{src/lib → lib}/types.js +0 -0
- package/dist/common/{src/puppeteerConfiger.js → puppeteerConfiger.js} +0 -0
- package/dist/common/{src/web.html.js → web.html.js} +0 -0
- package/dist/module/{src/Node.js → Node.js} +0 -0
- package/dist/module/{src/PM → PM}/index.js +0 -0
- package/dist/module/{src/SubPackages → SubPackages}/react/component/node.js +0 -0
- package/dist/module/{src/SubPackages → SubPackages}/react/component/web.js +0 -0
- package/dist/module/{src/SubPackages → SubPackages}/react/jsx/web.js +0 -0
- package/dist/module/{src/SubPackages → SubPackages}/react-dom/jsx/index.js +0 -0
- package/dist/module/{src/SubPackages → SubPackages}/react-test-renderer/MemoExoticComponent/node.js +0 -0
- package/dist/module/{src/SubPackages → SubPackages}/react-test-renderer/component/index.js +0 -0
- package/dist/module/{src/SubPackages → SubPackages}/react-test-renderer/component/interface.js +0 -0
- package/dist/module/{src/SubPackages → SubPackages}/react-test-renderer/component/node.js +0 -0
- package/dist/module/{src/SubPackages → SubPackages}/react-test-renderer/component/web.js +0 -0
- package/dist/module/{src/SubPackages → SubPackages}/react-test-renderer/fc/node.js +0 -0
- package/dist/module/{src/SubPackages → SubPackages}/react-test-renderer/fc/web.js +0 -0
- package/dist/module/{src/SubPackages → SubPackages}/react-test-renderer/jsx/node.js +0 -0
- package/dist/module/{src/SubPackages → SubPackages}/react-test-renderer/jsx/web.js +0 -0
- package/dist/module/{src/SubPackages → SubPackages}/react-test-renderer/jsx-promised/index.js +0 -0
- package/dist/module/{src/SubPackages → SubPackages}/react-test-renderer/jsx-promised/node.js +1 -1
- /package/dist/module/{src/SubPackages → SubPackages}/react-test-renderer/jsx-promised/web.js +0 -0
- /package/dist/module/{src/Types.js → Types.js} +0 -0
- /package/dist/module/{src/Web.js → Web.js} +0 -0
- /package/dist/module/{src/esbuildConfigs → esbuildConfigs}/featuresPlugin.js +0 -0
- /package/dist/module/{src/esbuildConfigs → esbuildConfigs}/index.js +0 -0
- /package/dist/module/{src/lib → lib}/types.js +0 -0
- /package/dist/module/{src/puppeteerConfiger.js → puppeteerConfiger.js} +0 -0
- /package/dist/module/{src/web.html.js → web.html.js} +0 -0
- /package/dist/types/{src/Init.d.ts → Init.d.ts} +0 -0
- /package/dist/types/{src/build-tests.d.ts → ReportServer.d.ts} +0 -0
- /package/dist/types/{src/SubPackages → SubPackages}/react-test-renderer/component/interface.d.ts +0 -0
- /package/dist/types/{src/init-docs.d.ts → build.d.ts} +0 -0
- /package/dist/types/{src/esbuildConfigs → esbuildConfigs}/featuresPlugin.d.ts +0 -0
- /package/dist/types/{src/run-tests.d.ts → init-docs.d.ts} +0 -0
- /package/dist/types/{src/puppeteerConfiger.d.ts → puppeteerConfiger.d.ts} +0 -0
- /package/dist/types/{src/web.html.d.ts → web.html.d.ts} +0 -0
package/src/lib/basebuilder.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PassThrough } from "stream";
|
|
2
2
|
|
|
3
3
|
import { ITTestResourceRequest, ITestJob, ITLog } from ".";
|
|
4
|
-
import {
|
|
4
|
+
import { Ibdd_in, Ibdd_out, ITestSpecification } from "../Types.js";
|
|
5
5
|
|
|
6
6
|
import {
|
|
7
7
|
ISuiteKlasser,
|
|
@@ -20,14 +20,16 @@ import {
|
|
|
20
20
|
import { PM } from "../PM/index.js";
|
|
21
21
|
|
|
22
22
|
export abstract class BaseBuilder<
|
|
23
|
-
|
|
24
|
-
unknown,
|
|
23
|
+
I extends Ibdd_in<
|
|
25
24
|
unknown,
|
|
26
25
|
unknown,
|
|
27
26
|
unknown,
|
|
28
27
|
unknown,
|
|
29
28
|
unknown,
|
|
30
29
|
unknown,
|
|
30
|
+
unknown
|
|
31
|
+
>,
|
|
32
|
+
O extends Ibdd_out<
|
|
31
33
|
Record<string, any>,
|
|
32
34
|
Record<string, any>,
|
|
33
35
|
Record<string, any>,
|
|
@@ -42,26 +44,26 @@ export abstract class BaseBuilder<
|
|
|
42
44
|
> {
|
|
43
45
|
specs: any;
|
|
44
46
|
|
|
45
|
-
assertThis: (t:
|
|
47
|
+
assertThis: (t: I["then"]) => {};
|
|
46
48
|
|
|
47
49
|
testResourceRequirement: ITTestResourceRequest;
|
|
48
50
|
artifacts: Promise<unknown>[] = [];
|
|
49
51
|
testJobs: ITestJob[];
|
|
50
|
-
testSpecification: ITestSpecification<
|
|
51
|
-
suitesOverrides: Record<keyof SuiteExtensions, ISuiteKlasser<
|
|
52
|
-
givenOverides: Record<keyof GivenExtensions, IGivenKlasser<
|
|
53
|
-
whenOverides: Record<keyof WhenExtensions, IWhenKlasser<
|
|
54
|
-
thenOverides: Record<keyof ThenExtensions, IThenKlasser<
|
|
55
|
-
checkOverides: Record<keyof CheckExtensions, ICheckKlasser<
|
|
52
|
+
testSpecification: ITestSpecification<I, O>;
|
|
53
|
+
suitesOverrides: Record<keyof SuiteExtensions, ISuiteKlasser<I, O>>;
|
|
54
|
+
givenOverides: Record<keyof GivenExtensions, IGivenKlasser<I>>;
|
|
55
|
+
whenOverides: Record<keyof WhenExtensions, IWhenKlasser<I>>;
|
|
56
|
+
thenOverides: Record<keyof ThenExtensions, IThenKlasser<I>>;
|
|
57
|
+
checkOverides: Record<keyof CheckExtensions, ICheckKlasser<I, O>>;
|
|
56
58
|
puppetMaster: PM;
|
|
57
59
|
|
|
58
60
|
constructor(
|
|
59
|
-
public readonly input:
|
|
60
|
-
suitesOverrides: Record<keyof SuiteExtensions, ISuiteKlasser<
|
|
61
|
-
givenOverides: Record<keyof GivenExtensions, IGivenKlasser<
|
|
62
|
-
whenOverides: Record<keyof WhenExtensions, IWhenKlasser<
|
|
63
|
-
thenOverides: Record<keyof ThenExtensions, IThenKlasser<
|
|
64
|
-
checkOverides: Record<keyof CheckExtensions, ICheckKlasser<
|
|
61
|
+
public readonly input: I["iinput"],
|
|
62
|
+
suitesOverrides: Record<keyof SuiteExtensions, ISuiteKlasser<I, O>>,
|
|
63
|
+
givenOverides: Record<keyof GivenExtensions, IGivenKlasser<I>>,
|
|
64
|
+
whenOverides: Record<keyof WhenExtensions, IWhenKlasser<I>>,
|
|
65
|
+
thenOverides: Record<keyof ThenExtensions, IThenKlasser<I>>,
|
|
66
|
+
checkOverides: Record<keyof CheckExtensions, ICheckKlasser<I, O>>,
|
|
65
67
|
testResourceRequirement: ITTestResourceRequest,
|
|
66
68
|
testSpecification: any
|
|
67
69
|
) {
|
|
@@ -82,13 +84,10 @@ export abstract class BaseBuilder<
|
|
|
82
84
|
this.Check()
|
|
83
85
|
);
|
|
84
86
|
|
|
85
|
-
this.testJobs = this.specs.map((suite: BaseSuite<
|
|
87
|
+
this.testJobs = this.specs.map((suite: BaseSuite<I, O>) => {
|
|
86
88
|
const suiteRunner =
|
|
87
|
-
(suite: BaseSuite<
|
|
88
|
-
async (
|
|
89
|
-
puppetMaster: PM,
|
|
90
|
-
tLog: ITLog
|
|
91
|
-
): Promise<BaseSuite<ITestShape>> => {
|
|
89
|
+
(suite: BaseSuite<I, O>) =>
|
|
90
|
+
async (puppetMaster: PM, tLog: ITLog): Promise<BaseSuite<I, O>> => {
|
|
92
91
|
const x = await suite.run(
|
|
93
92
|
input,
|
|
94
93
|
puppetMaster.testResourceConfiguration,
|
|
@@ -124,10 +123,7 @@ export abstract class BaseBuilder<
|
|
|
124
123
|
puppetMaster.write(access, `${l.toString()}\n`);
|
|
125
124
|
};
|
|
126
125
|
|
|
127
|
-
const suiteDone: BaseSuite<
|
|
128
|
-
puppetMaster,
|
|
129
|
-
tLog
|
|
130
|
-
);
|
|
126
|
+
const suiteDone: BaseSuite<I, O> = await runner(puppetMaster, tLog);
|
|
131
127
|
|
|
132
128
|
const logPromise = new Promise((res, rej) => {
|
|
133
129
|
puppetMaster.end(access);
|
|
@@ -137,22 +133,41 @@ export abstract class BaseBuilder<
|
|
|
137
133
|
const numberOfFailures = Object.keys(suiteDone.givens).filter((k) => {
|
|
138
134
|
return suiteDone.givens[k].error;
|
|
139
135
|
}).length;
|
|
140
|
-
puppetMaster.writeFileSync(
|
|
136
|
+
puppetMaster.writeFileSync(
|
|
137
|
+
`bdd_errors.txt`,
|
|
138
|
+
numberOfFailures.toString()
|
|
139
|
+
);
|
|
141
140
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
141
|
+
const o = this.toObj();
|
|
142
|
+
puppetMaster.writeFileSync(
|
|
143
|
+
`littleBoard.html`,
|
|
144
|
+
`
|
|
145
|
+
<!DOCTYPE html>
|
|
146
|
+
<html lang="en">
|
|
147
|
+
|
|
148
|
+
<head>
|
|
149
|
+
<meta name="description" content="Webpage description goes here" />
|
|
150
|
+
<meta charset="utf-8" />
|
|
151
|
+
<title>kokomoBay - testeranto</title>
|
|
152
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
153
|
+
<meta name="author" content="" />
|
|
154
|
+
|
|
155
|
+
<link rel="stylesheet" href="/kokomoBay/docs/TestReport.css" />
|
|
156
|
+
<script src="/kokomoBay/docs/TestReport.js"></script>
|
|
157
|
+
|
|
158
|
+
</head>
|
|
159
|
+
|
|
160
|
+
<body>
|
|
161
|
+
<h1>Test report</h1>
|
|
162
|
+
<div id="root"/>
|
|
163
|
+
</body>
|
|
164
|
+
`
|
|
165
|
+
);
|
|
150
166
|
|
|
151
167
|
puppetMaster.writeFileSync(
|
|
152
168
|
`tests.json`,
|
|
153
169
|
JSON.stringify(this.toObj(), null, 2)
|
|
154
170
|
);
|
|
155
|
-
// console.log(`exiting gracefully with ${numberOfFailures} failures.`);
|
|
156
171
|
|
|
157
172
|
return {
|
|
158
173
|
failed: numberOfFailures,
|
|
@@ -177,27 +192,24 @@ export abstract class BaseBuilder<
|
|
|
177
192
|
(
|
|
178
193
|
name: string,
|
|
179
194
|
features: string[],
|
|
180
|
-
whens: BaseWhen<
|
|
181
|
-
thens: BaseThen<
|
|
195
|
+
whens: BaseWhen<I>[],
|
|
196
|
+
thens: BaseThen<I>[],
|
|
182
197
|
gcb
|
|
183
|
-
) => BaseGiven<
|
|
198
|
+
) => BaseGiven<I>
|
|
184
199
|
> {
|
|
185
200
|
return this.givenOverides;
|
|
186
201
|
}
|
|
187
202
|
|
|
188
203
|
When(): Record<
|
|
189
204
|
keyof WhenExtensions,
|
|
190
|
-
(arg0:
|
|
205
|
+
(arg0: I["istore"], ...arg1: any) => BaseWhen<I>
|
|
191
206
|
> {
|
|
192
207
|
return this.whenOverides;
|
|
193
208
|
}
|
|
194
209
|
|
|
195
210
|
Then(): Record<
|
|
196
211
|
keyof ThenExtensions,
|
|
197
|
-
(
|
|
198
|
-
selection: ITestShape["iselection"],
|
|
199
|
-
expectation: any
|
|
200
|
-
) => BaseThen<ITestShape>
|
|
212
|
+
(selection: I["iselection"], expectation: any) => BaseThen<I>
|
|
201
213
|
> {
|
|
202
214
|
return this.thenOverides;
|
|
203
215
|
}
|
|
@@ -210,7 +222,7 @@ export abstract class BaseBuilder<
|
|
|
210
222
|
whens,
|
|
211
223
|
thens,
|
|
212
224
|
x
|
|
213
|
-
) => BaseCheck<
|
|
225
|
+
) => BaseCheck<I, O>
|
|
214
226
|
> {
|
|
215
227
|
return this.checkOverides;
|
|
216
228
|
}
|
package/src/lib/classBuilder.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
Ibdd_in,
|
|
3
|
+
Ibdd_out,
|
|
3
4
|
ITestImplementation,
|
|
4
5
|
ITestSpecification,
|
|
5
6
|
} from "../Types.js";
|
|
6
7
|
|
|
7
8
|
import { BaseBuilder } from "./basebuilder.js";
|
|
8
|
-
|
|
9
9
|
import {
|
|
10
10
|
ISuiteKlasser,
|
|
11
11
|
IGivenKlasser,
|
|
@@ -13,34 +13,35 @@ import {
|
|
|
13
13
|
IThenKlasser,
|
|
14
14
|
ICheckKlasser,
|
|
15
15
|
} from "./types.js";
|
|
16
|
-
import { PM } from "../PM/index.js";
|
|
17
16
|
import { ITTestResourceRequest } from "./index.js";
|
|
18
17
|
|
|
19
18
|
export abstract class ClassBuilder<
|
|
20
|
-
|
|
21
|
-
unknown,
|
|
19
|
+
I extends Ibdd_in<
|
|
22
20
|
unknown,
|
|
23
21
|
unknown,
|
|
24
22
|
unknown,
|
|
25
23
|
unknown,
|
|
26
24
|
unknown,
|
|
27
25
|
unknown,
|
|
26
|
+
unknown
|
|
27
|
+
>,
|
|
28
|
+
O extends Ibdd_out<
|
|
28
29
|
Record<string, any>,
|
|
29
30
|
Record<string, any>,
|
|
30
31
|
Record<string, any>,
|
|
31
32
|
Record<string, any>,
|
|
32
33
|
Record<string, any>
|
|
33
34
|
>
|
|
34
|
-
> extends BaseBuilder<
|
|
35
|
+
> extends BaseBuilder<I, O, any, any, any, any, any> {
|
|
35
36
|
constructor(
|
|
36
|
-
testImplementation: ITestImplementation<
|
|
37
|
-
testSpecification: ITestSpecification<
|
|
38
|
-
input:
|
|
39
|
-
suiteKlasser: ISuiteKlasser<
|
|
40
|
-
givenKlasser: IGivenKlasser<
|
|
41
|
-
whenKlasser: IWhenKlasser<
|
|
42
|
-
thenKlasser: IThenKlasser<
|
|
43
|
-
checkKlasser: ICheckKlasser<
|
|
37
|
+
testImplementation: ITestImplementation<I, O>,
|
|
38
|
+
testSpecification: ITestSpecification<I, O>,
|
|
39
|
+
input: I["iinput"],
|
|
40
|
+
suiteKlasser: ISuiteKlasser<I, O>,
|
|
41
|
+
givenKlasser: IGivenKlasser<I>,
|
|
42
|
+
whenKlasser: IWhenKlasser<I>,
|
|
43
|
+
thenKlasser: IThenKlasser<I>,
|
|
44
|
+
checkKlasser: ICheckKlasser<I, O>,
|
|
44
45
|
testResourceRequirement: ITTestResourceRequest
|
|
45
46
|
) {
|
|
46
47
|
const classySuites = Object.entries(testImplementation.suites).reduce(
|
|
@@ -126,7 +127,6 @@ export abstract class ClassBuilder<
|
|
|
126
127
|
classyChecks,
|
|
127
128
|
testResourceRequirement,
|
|
128
129
|
testSpecification
|
|
129
|
-
// puppetMaster
|
|
130
130
|
);
|
|
131
131
|
}
|
|
132
132
|
}
|
package/src/lib/core.ts
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { IStore } from "../SubPackages/react/jsx";
|
|
2
2
|
import {
|
|
3
|
-
IBaseTest,
|
|
4
3
|
ITestSpecification,
|
|
5
4
|
ITestImplementation,
|
|
5
|
+
ITestInterface,
|
|
6
|
+
Ibdd_in,
|
|
7
|
+
Ibdd_out,
|
|
6
8
|
} from "../Types.js";
|
|
9
|
+
import { PM } from "../PM/index";
|
|
7
10
|
|
|
8
|
-
import { IFinalResults, ITestInterface } from "./types.js";
|
|
9
11
|
import {
|
|
10
12
|
DefaultTestInterface,
|
|
13
|
+
IFinalResults,
|
|
11
14
|
ITTestResourceRequest,
|
|
12
15
|
ITestArtifactory,
|
|
13
16
|
defaultTestResourceRequirement,
|
|
@@ -20,30 +23,31 @@ import {
|
|
|
20
23
|
BaseCheck,
|
|
21
24
|
} from "./abstractBase.js";
|
|
22
25
|
import { ClassBuilder } from "./classBuilder.js";
|
|
23
|
-
import { PM } from "../PM/index";
|
|
24
26
|
|
|
25
27
|
export default abstract class Testeranto<
|
|
26
|
-
|
|
27
|
-
unknown,
|
|
28
|
+
I extends Ibdd_in<
|
|
28
29
|
unknown,
|
|
29
30
|
unknown,
|
|
30
31
|
unknown,
|
|
31
32
|
unknown,
|
|
32
33
|
unknown,
|
|
33
34
|
unknown,
|
|
35
|
+
unknown
|
|
36
|
+
>,
|
|
37
|
+
O extends Ibdd_out<
|
|
34
38
|
Record<string, any>,
|
|
35
39
|
Record<string, any>,
|
|
36
40
|
Record<string, any>,
|
|
37
41
|
Record<string, any>,
|
|
38
42
|
Record<string, any>
|
|
39
43
|
>
|
|
40
|
-
> extends ClassBuilder<
|
|
44
|
+
> extends ClassBuilder<I, O> {
|
|
41
45
|
constructor(
|
|
42
|
-
input:
|
|
43
|
-
testSpecification: ITestSpecification<
|
|
44
|
-
testImplementation: ITestImplementation<
|
|
46
|
+
input: I["iinput"],
|
|
47
|
+
testSpecification: ITestSpecification<I, O>,
|
|
48
|
+
testImplementation: ITestImplementation<I, O>,
|
|
45
49
|
testResourceRequirement: ITTestResourceRequest = defaultTestResourceRequirement,
|
|
46
|
-
testInterface: Partial<ITestInterface<
|
|
50
|
+
testInterface: Partial<ITestInterface<I>>,
|
|
47
51
|
uberCatcher: (cb) => void
|
|
48
52
|
) {
|
|
49
53
|
const fullTestInterface = DefaultTestInterface(testInterface);
|
|
@@ -53,15 +57,15 @@ export default abstract class Testeranto<
|
|
|
53
57
|
testSpecification,
|
|
54
58
|
input,
|
|
55
59
|
|
|
56
|
-
class extends BaseSuite<
|
|
60
|
+
class extends BaseSuite<I, O> {
|
|
57
61
|
afterAll(store: IStore, artifactory: ITestArtifactory, pm: PM) {
|
|
58
62
|
return fullTestInterface.afterAll(
|
|
59
63
|
store,
|
|
60
|
-
(fPath: string, value: unknown) =>
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
64
|
+
// (fPath: string, value: unknown) =>
|
|
65
|
+
// // TODO does not work?
|
|
66
|
+
// {
|
|
67
|
+
// artifactory(`afterAll4-${this.name}/${fPath}`, value);
|
|
68
|
+
// },
|
|
65
69
|
pm
|
|
66
70
|
);
|
|
67
71
|
}
|
|
@@ -71,24 +75,29 @@ export default abstract class Testeranto<
|
|
|
71
75
|
}
|
|
72
76
|
|
|
73
77
|
async setup(
|
|
74
|
-
s:
|
|
78
|
+
s: I["iinput"],
|
|
75
79
|
artifactory: ITestArtifactory,
|
|
76
80
|
tr,
|
|
77
81
|
pm
|
|
78
|
-
): Promise<
|
|
82
|
+
): Promise<I["isubject"]> {
|
|
79
83
|
return (
|
|
80
84
|
fullTestInterface.beforeAll ||
|
|
81
85
|
(async (
|
|
82
|
-
input:
|
|
86
|
+
input: I["iinput"],
|
|
83
87
|
artifactory: ITestArtifactory,
|
|
84
88
|
tr,
|
|
85
89
|
pm: PM
|
|
86
90
|
) => input as any)
|
|
87
|
-
)(
|
|
91
|
+
)(
|
|
92
|
+
s,
|
|
93
|
+
this.testResourceConfiguration,
|
|
94
|
+
// artifactory,
|
|
95
|
+
pm
|
|
96
|
+
);
|
|
88
97
|
}
|
|
89
98
|
} as any,
|
|
90
99
|
|
|
91
|
-
class Given extends BaseGiven<
|
|
100
|
+
class Given extends BaseGiven<I> {
|
|
92
101
|
uberCatcher = uberCatcher;
|
|
93
102
|
|
|
94
103
|
async givenThat(
|
|
@@ -102,7 +111,7 @@ export default abstract class Testeranto<
|
|
|
102
111
|
return fullTestInterface.beforeEach(
|
|
103
112
|
subject,
|
|
104
113
|
initializer,
|
|
105
|
-
artifactory,
|
|
114
|
+
// artifactory,
|
|
106
115
|
testResource,
|
|
107
116
|
initialValues,
|
|
108
117
|
pm
|
|
@@ -110,7 +119,7 @@ export default abstract class Testeranto<
|
|
|
110
119
|
}
|
|
111
120
|
|
|
112
121
|
afterEach(
|
|
113
|
-
store:
|
|
122
|
+
store: I["istore"],
|
|
114
123
|
key: string,
|
|
115
124
|
artifactory,
|
|
116
125
|
pm
|
|
@@ -120,8 +129,8 @@ export default abstract class Testeranto<
|
|
|
120
129
|
fullTestInterface.afterEach(
|
|
121
130
|
store,
|
|
122
131
|
key,
|
|
123
|
-
(fPath: string, value: unknown) =>
|
|
124
|
-
|
|
132
|
+
// (fPath: string, value: unknown) =>
|
|
133
|
+
// artifactory(`after/${fPath}`, value),
|
|
125
134
|
pm
|
|
126
135
|
)
|
|
127
136
|
)
|
|
@@ -129,7 +138,7 @@ export default abstract class Testeranto<
|
|
|
129
138
|
}
|
|
130
139
|
} as any,
|
|
131
140
|
|
|
132
|
-
class When extends BaseWhen<
|
|
141
|
+
class When extends BaseWhen<I> {
|
|
133
142
|
async andWhen(store, whenCB, testResource, pm) {
|
|
134
143
|
try {
|
|
135
144
|
return await fullTestInterface.andWhen(
|
|
@@ -158,13 +167,13 @@ export default abstract class Testeranto<
|
|
|
158
167
|
}
|
|
159
168
|
} as any,
|
|
160
169
|
|
|
161
|
-
class Then extends BaseThen<
|
|
170
|
+
class Then extends BaseThen<I> {
|
|
162
171
|
async butThen(
|
|
163
172
|
store: any,
|
|
164
173
|
thenCB,
|
|
165
174
|
testResource: any,
|
|
166
175
|
pm: PM
|
|
167
|
-
): Promise<
|
|
176
|
+
): Promise<I["iselection"]> {
|
|
168
177
|
return await fullTestInterface
|
|
169
178
|
.butThen(store, thenCB, testResource, pm)
|
|
170
179
|
.then(
|
|
@@ -198,7 +207,7 @@ export default abstract class Testeranto<
|
|
|
198
207
|
}
|
|
199
208
|
} as any,
|
|
200
209
|
|
|
201
|
-
class Check extends BaseCheck<
|
|
210
|
+
class Check extends BaseCheck<I, O> {
|
|
202
211
|
initialValues: any;
|
|
203
212
|
|
|
204
213
|
constructor(
|
|
@@ -217,8 +226,8 @@ export default abstract class Testeranto<
|
|
|
217
226
|
return fullTestInterface.beforeEach(
|
|
218
227
|
subject,
|
|
219
228
|
this.initialValues,
|
|
220
|
-
(fPath: string, value: unknown) =>
|
|
221
|
-
|
|
229
|
+
// (fPath: string, value: unknown) =>
|
|
230
|
+
// artifactory(`before/${fPath}`, value),
|
|
222
231
|
testResourceConfiguration,
|
|
223
232
|
this.initialValues,
|
|
224
233
|
pm
|
|
@@ -226,7 +235,7 @@ export default abstract class Testeranto<
|
|
|
226
235
|
}
|
|
227
236
|
|
|
228
237
|
afterEach(
|
|
229
|
-
store:
|
|
238
|
+
store: I["istore"],
|
|
230
239
|
key: string,
|
|
231
240
|
artifactory,
|
|
232
241
|
pm
|
|
@@ -236,9 +245,9 @@ export default abstract class Testeranto<
|
|
|
236
245
|
fullTestInterface.afterEach(
|
|
237
246
|
store,
|
|
238
247
|
key,
|
|
239
|
-
(fPath: string, value: unknown) =>
|
|
240
|
-
|
|
241
|
-
|
|
248
|
+
// (fPath: string, value: unknown) =>
|
|
249
|
+
// // TODO does not work?
|
|
250
|
+
// artifactory(`afterEach2-${this.name}/${fPath}`, value),
|
|
242
251
|
pm
|
|
243
252
|
)
|
|
244
253
|
)
|
package/src/lib/index.ts
CHANGED
|
@@ -1,32 +1,11 @@
|
|
|
1
|
+
import { IBaseTest } from "../../dist/types/src/Types.js";
|
|
1
2
|
import { PM } from "../PM/index.js";
|
|
2
|
-
import {
|
|
3
|
+
import { Ibdd_in, Ibdd_out, ITestInterface } from "../Types.js";
|
|
3
4
|
|
|
4
|
-
import {
|
|
5
|
-
IGivens,
|
|
6
|
-
BaseCheck,
|
|
7
|
-
BaseSuite,
|
|
8
|
-
BaseWhen,
|
|
9
|
-
BaseThen,
|
|
10
|
-
} from "./abstractBase.js";
|
|
11
|
-
import { ITestInterface } from "./types.js";
|
|
12
|
-
|
|
13
|
-
// import { INodeUtils, ITestInterface, IUtils, IWebUtils } from "./types.js";
|
|
5
|
+
import { IGivens, BaseCheck, BaseSuite } from "./abstractBase.js";
|
|
14
6
|
|
|
15
7
|
export const BaseTestInterface: ITestInterface<
|
|
16
|
-
|
|
17
|
-
unknown,
|
|
18
|
-
unknown,
|
|
19
|
-
unknown,
|
|
20
|
-
unknown,
|
|
21
|
-
unknown,
|
|
22
|
-
unknown,
|
|
23
|
-
unknown,
|
|
24
|
-
Record<string, any>,
|
|
25
|
-
Record<string, any>,
|
|
26
|
-
Record<string, any>,
|
|
27
|
-
Record<string, any>,
|
|
28
|
-
Record<string, any>
|
|
29
|
-
>
|
|
8
|
+
Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>
|
|
30
9
|
> = {
|
|
31
10
|
beforeAll: async (s) => s,
|
|
32
11
|
beforeEach: async function (
|
|
@@ -40,35 +19,25 @@ export const BaseTestInterface: ITestInterface<
|
|
|
40
19
|
},
|
|
41
20
|
afterEach: async (s) => s,
|
|
42
21
|
afterAll: (
|
|
43
|
-
store:
|
|
44
|
-
unknown,
|
|
22
|
+
store: Ibdd_in<
|
|
45
23
|
unknown,
|
|
46
24
|
unknown,
|
|
47
25
|
unknown,
|
|
48
26
|
unknown,
|
|
49
27
|
unknown,
|
|
50
28
|
unknown,
|
|
51
|
-
|
|
52
|
-
Record<string, any>,
|
|
53
|
-
Record<string, any>,
|
|
54
|
-
Record<string, any>,
|
|
55
|
-
Record<string, any>
|
|
29
|
+
unknown
|
|
56
30
|
>["istore"]
|
|
57
31
|
) => undefined,
|
|
58
32
|
butThen: async (
|
|
59
|
-
store:
|
|
60
|
-
unknown,
|
|
33
|
+
store: Ibdd_in<
|
|
61
34
|
unknown,
|
|
62
35
|
unknown,
|
|
63
36
|
unknown,
|
|
64
37
|
unknown,
|
|
65
38
|
unknown,
|
|
66
39
|
unknown,
|
|
67
|
-
|
|
68
|
-
Record<string, any>,
|
|
69
|
-
Record<string, any>,
|
|
70
|
-
Record<string, any>,
|
|
71
|
-
Record<string, any>
|
|
40
|
+
unknown
|
|
72
41
|
>["istore"],
|
|
73
42
|
thenCb
|
|
74
43
|
) => thenCb(store),
|
|
@@ -120,30 +89,11 @@ type ITest = {
|
|
|
120
89
|
toObj(): object;
|
|
121
90
|
name: string;
|
|
122
91
|
givens: IGivens<
|
|
123
|
-
|
|
124
|
-
unknown,
|
|
125
|
-
unknown,
|
|
126
|
-
unknown,
|
|
127
|
-
unknown,
|
|
128
|
-
unknown,
|
|
129
|
-
unknown,
|
|
130
|
-
unknown,
|
|
131
|
-
Record<string, any>,
|
|
132
|
-
Record<string, any>,
|
|
133
|
-
Record<string, any>,
|
|
134
|
-
Record<string, any>,
|
|
135
|
-
Record<string, any>
|
|
136
|
-
>
|
|
92
|
+
Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>
|
|
137
93
|
>;
|
|
138
94
|
checks: BaseCheck<
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
unknown,
|
|
142
|
-
unknown,
|
|
143
|
-
unknown,
|
|
144
|
-
unknown,
|
|
145
|
-
unknown,
|
|
146
|
-
unknown,
|
|
95
|
+
Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>,
|
|
96
|
+
Ibdd_out<
|
|
147
97
|
Record<string, any>,
|
|
148
98
|
Record<string, any>,
|
|
149
99
|
Record<string, any>,
|
|
@@ -162,14 +112,8 @@ export type ITestJob<T = PM> = {
|
|
|
162
112
|
t: ITLog
|
|
163
113
|
) => Promise<
|
|
164
114
|
BaseSuite<
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
unknown,
|
|
168
|
-
unknown,
|
|
169
|
-
unknown,
|
|
170
|
-
unknown,
|
|
171
|
-
unknown,
|
|
172
|
-
unknown,
|
|
115
|
+
Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>,
|
|
116
|
+
Ibdd_out<
|
|
173
117
|
Record<string, any>,
|
|
174
118
|
Record<string, any>,
|
|
175
119
|
Record<string, any>,
|
|
@@ -195,33 +139,38 @@ export const defaultTestResourceRequirement: ITTestResourceRequest = {
|
|
|
195
139
|
|
|
196
140
|
export type ITestArtifactory = (key: string, value: unknown) => unknown;
|
|
197
141
|
|
|
198
|
-
export type
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
142
|
+
export type IRunnables = {
|
|
143
|
+
nodeEntryPoints: Record<string, string>;
|
|
144
|
+
webEntryPoints: Record<string, string>;
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
export type IFinalResults = { features: string[]; failed: number };
|
|
148
|
+
|
|
149
|
+
export type IRunTime = `node` | `web`;
|
|
150
|
+
|
|
151
|
+
export type ITestTypes = [string, IRunTime, { ports: number }, ITestTypes[]];
|
|
152
|
+
|
|
153
|
+
export type IPluginFactory = (
|
|
154
|
+
register: (entrypoint, sources) => any,
|
|
155
|
+
entrypoints
|
|
156
|
+
) => Plugin;
|
|
157
|
+
|
|
158
|
+
export type IBaseConfig = {
|
|
159
|
+
src: string;
|
|
160
|
+
clearScreen: boolean;
|
|
161
|
+
debugger: boolean;
|
|
162
|
+
devMode: boolean;
|
|
163
|
+
externals: string[];
|
|
164
|
+
minify: boolean;
|
|
165
|
+
outbase: string;
|
|
166
|
+
outdir: string;
|
|
167
|
+
ports: string[];
|
|
168
|
+
tests: ITestTypes[];
|
|
169
|
+
|
|
170
|
+
nodePlugins: IPluginFactory[];
|
|
171
|
+
webPlugins: IPluginFactory[];
|
|
172
|
+
|
|
173
|
+
featureIngestor: (s: string) => Promise<string>;
|
|
227
174
|
};
|
|
175
|
+
|
|
176
|
+
export type IBuiltConfig = { buildDir: string } & IBaseConfig;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# lib
|
|
2
|
+
|
|
3
|
+
This folder represents testeranto internals.
|
|
4
|
+
|
|
5
|
+
## layers
|
|
6
|
+
|
|
7
|
+
Testeranto's core architecture is built in layers.
|
|
8
|
+
|
|
9
|
+
0. abstractBase.ts - The lowest layer is composed of abstract BDD classes
|
|
10
|
+
1. baseBuilder.ts - this layer extends the classes in `abstractBase` with the capacity to run and log tests.
|
|
11
|
+
2. classBuilder.ts - this layer extends the classes in `baseBuilder` with the capacity to accept custom implementations of of abstract BDD classes in `abstractBase`
|
|
12
|
+
3. core.ts - this layer extends the classes in `classBuilder` with the capacity to accept an input, a specification, a implementation a test resource requirement and an interface, and to map those entities to custom implementations of of abstract BDD classes in `abstractBase`.
|