testeranto 0.172.0 → 0.177.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 +2 -4
- package/dist/common/src/PM/base.js +5 -1
- package/dist/common/src/PM/main.js +57 -54
- package/dist/common/src/PM/node.js +4 -1
- package/dist/common/src/PM/pure.js +4 -1
- package/dist/common/src/PM/web.js +6 -3
- package/dist/common/src/Pure.js +0 -4
- package/dist/common/src/Pure.test.js +1 -1
- package/dist/common/src/ReportServer.js +2 -126
- package/dist/common/src/ReportServer.test.ts/index.js +78 -0
- package/dist/common/src/ReportServerLib.js +141 -0
- package/dist/common/src/components/pure/ProjectPageView.test/implementation.js +1 -1
- package/dist/common/src/esbuildConfigs/node.js +1 -3
- package/dist/common/src/lib/BaseSuite.js +13 -11
- package/dist/common/src/lib/abstractBase.js +39 -40
- package/dist/common/src/lib/baseBuilder.test/baseBuilder.test.implementation.js +10 -9
- package/dist/common/src/lib/baseBuilder.test/baseBuilder.test.specification.js +7 -7
- package/dist/common/src/lib/basebuilder.js +13 -2
- package/dist/common/src/lib/core.js +1 -0
- package/dist/common/src/lib/pmProxy.js +215 -201
- package/dist/common/src/lib/pmProxy.test/adapter.js +2 -2
- package/dist/common/src/lib/pmProxy.test/implementation.js +1 -1
- package/dist/common/testeranto.config.js +47 -32
- package/dist/common/tsconfig.common.tsbuildinfo +1 -1
- package/dist/module/src/PM/base.js +5 -1
- package/dist/module/src/PM/main.js +22 -19
- package/dist/module/src/PM/node.js +4 -1
- package/dist/module/src/PM/pure.js +4 -1
- package/dist/module/src/PM/web.js +6 -3
- package/dist/module/src/Pure.js +0 -4
- package/dist/module/src/Pure.test.js +1 -1
- package/dist/module/src/ReportServer.js +2 -123
- package/dist/module/src/ReportServer.test.ts/index.js +73 -0
- package/dist/module/src/ReportServerLib.js +134 -0
- package/dist/module/src/TestPage.js +29 -17
- package/dist/module/src/components/pure/ProjectPageView.test/implementation.js +1 -1
- package/dist/module/src/components/pure/TestPageView.js +29 -17
- package/dist/module/src/esbuildConfigs/node.js +1 -3
- package/dist/module/src/lib/BaseSuite.js +13 -11
- package/dist/module/src/lib/abstractBase.js +39 -40
- package/dist/module/src/lib/baseBuilder.test/baseBuilder.test.implementation.js +10 -9
- package/dist/module/src/lib/baseBuilder.test/baseBuilder.test.specification.js +7 -7
- package/dist/module/src/lib/basebuilder.js +13 -2
- package/dist/module/src/lib/core.js +1 -0
- package/dist/module/src/lib/pmProxy.js +215 -201
- package/dist/module/src/lib/pmProxy.test/adapter.js +2 -2
- package/dist/module/src/lib/pmProxy.test/implementation.js +1 -1
- package/dist/module/testeranto.config.js +47 -32
- package/dist/module/tsconfig.module.tsbuildinfo +1 -1
- package/dist/prebuild/App.js +3 -3
- package/dist/prebuild/ReportServer.mjs +21 -9
- package/dist/prebuild/build.mjs +1 -1
- package/dist/prebuild/run.mjs +27 -20
- package/dist/types/src/PM/base.d.ts +1 -1
- package/dist/types/src/PM/node.d.ts +1 -1
- package/dist/types/src/PM/pure.d.ts +1 -1
- package/dist/types/src/PM/web.d.ts +1 -1
- package/dist/types/src/ReportServer.test.ts/index.d.ts +29 -0
- package/dist/types/src/ReportServerLib.d.ts +1 -0
- package/dist/types/src/Types.d.ts +0 -1
- package/dist/types/src/components/pure/ProjectPageView.test/index.d.ts +2 -1
- package/dist/types/src/lib/BaseSuite.d.ts +2 -0
- package/dist/types/src/lib/abstractBase.d.ts +5 -7
- package/dist/types/src/lib/baseBuilder.test/baseBuilder.test.types.d.ts +7 -4
- package/dist/types/src/lib/pmProxy.d.ts +3 -3
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/PM/base.ts +7 -5
- package/src/PM/main.ts +26 -21
- package/src/PM/node.ts +6 -1
- package/src/PM/pure.ts +6 -1
- package/src/PM/web.ts +7 -3
- package/src/Pure.test.ts +6 -6
- package/src/Pure.ts +0 -8
- package/src/ReportServer.test.ts/index.ts +194 -0
- package/src/ReportServer.ts +2 -132
- package/src/ReportServerLib.ts +147 -0
- package/src/TestPage.tsx +65 -5
- package/src/Types.ts +0 -1
- package/src/components/pure/ProjectPageView.test/implementation.tsx +1 -1
- package/src/components/pure/TestPageView.tsx +65 -5
- package/src/esbuildConfigs/node.ts +1 -1
- package/src/lib/BaseSuite.ts +16 -21
- package/src/lib/abstractBase.ts +59 -48
- package/src/lib/baseBuilder.test/baseBuilder.test.implementation.ts +22 -10
- package/src/lib/baseBuilder.test/baseBuilder.test.specification.ts +9 -9
- package/src/lib/baseBuilder.test/baseBuilder.test.types.ts +7 -4
- package/src/lib/basebuilder.ts +13 -4
- package/src/lib/core.ts +1 -0
- package/src/lib/pmProxy.test/adapter.ts +2 -2
- package/src/lib/pmProxy.test/implementation.ts +3 -3
- package/src/lib/pmProxy.test/types.ts +0 -2
- package/src/lib/pmProxy.ts +135 -80
- package/testeranto/App.js +3 -3
- package/testeranto/bundles/node/core/metafile.json +8 -0
- package/testeranto/bundles/pure/core/metafile.json +8 -0
- package/testeranto/bundles/web/core/metafile.json +15086 -0
- package/testeranto/bundles/web/{allTests → core}/src/components/pure/ProjectPageView.test/index.html +1 -1
- package/testeranto/bundles/web/{allTests → core}/src/components/pure/ProjectPageView.test/index.mjs +4109 -1642
- package/testeranto/projects.json +1 -1
- package/testeranto/reports/core/config.json +24 -0
- package/testeranto/reports/{allTests → core}/src/components/pure/ProjectPageView.test/index/web/lint_errors.txt +6 -1
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/logs.txt +59 -0
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/message.txt +2 -0
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/prompt.txt +27 -0
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/suite-0/given-basicRender/then-0/butThen/happyPath.png +0 -0
- package/testeranto/reports/{allTests → core}/src/components/pure/ProjectPageView.test/index/web/type_errors.txt +15 -33
- package/testeranto/reports/core/summary.json +9 -0
- package/testeranto.config.ts +49 -32
- package/tsc.log +78 -92
- package/testeranto/bundles/node/allTests/chunk-3EUGBAOM.mjs +0 -113
- package/testeranto/bundles/node/allTests/chunk-E75CSRER.mjs +0 -800
- package/testeranto/bundles/node/allTests/chunk-M6DO7VMB.mjs +0 -252
- package/testeranto/bundles/node/allTests/metafile.json +0 -1229
- package/testeranto/bundles/node/allTests/src/lib/BaseSuite.test/node.test.mjs +0 -323
- package/testeranto/bundles/node/allTests/src/lib/baseBuilder.test/baseBuilder.test.node.mjs +0 -223
- package/testeranto/bundles/node/allTests/src/lib/classBuilder.test/classBuilder.test.mjs +0 -411
- package/testeranto/bundles/node/allTests/src/lib/core.test/core.test.mjs +0 -528
- package/testeranto/bundles/node/allTests/src/lib/pmProxy.test/index.mjs +0 -4752
- package/testeranto/bundles/pure/allTests/chunk-KHDVEHF7.mjs +0 -185
- package/testeranto/bundles/pure/allTests/chunk-VMUSFSZM.mjs +0 -797
- package/testeranto/bundles/pure/allTests/metafile.json +0 -1054
- package/testeranto/bundles/pure/allTests/src/Pure.test.mjs +0 -429
- package/testeranto/bundles/pure/allTests/src/lib/BaseSuite.test/pure.test.mjs +0 -425
- package/testeranto/bundles/pure/allTests/src/lib/baseBuilder.test/baseBuilder.test.pure.mjs +0 -381
- package/testeranto/bundles/web/allTests/chunk-HPYA4YZC.mjs +0 -2283
- package/testeranto/bundles/web/allTests/chunk-U7AW26HL.mjs +0 -997
- package/testeranto/bundles/web/allTests/metafile.json +0 -25
- package/testeranto/bundles/web/allTests/src/lib/BaseSuite.test/web.test.html +0 -19
- package/testeranto/bundles/web/allTests/src/lib/BaseSuite.test/web.test.mjs +0 -440
- package/testeranto/bundles/web/allTests/src/lib/baseBuilder.test/baseBuilder.test.web.html +0 -19
- package/testeranto/bundles/web/allTests/src/lib/baseBuilder.test/baseBuilder.test.web.mjs +0 -244
- package/testeranto/reports/allTests/config.json +0 -104
- package/testeranto/reports/allTests/src/Pure.test/pure/lint_errors.txt +0 -0
- package/testeranto/reports/allTests/src/Pure.test/pure/message.txt +0 -2
- package/testeranto/reports/allTests/src/Pure.test/pure/prompt.txt +0 -13
- package/testeranto/reports/allTests/src/Pure.test/pure/type_errors.txt +0 -101
- package/testeranto/reports/allTests/src/components/pure/ProjectPageView.test/index/web/bdd_errors.txt +0 -1
- package/testeranto/reports/allTests/src/components/pure/ProjectPageView.test/index/web/logs.txt +0 -50
- package/testeranto/reports/allTests/src/components/pure/ProjectPageView.test/index/web/message.txt +0 -2
- package/testeranto/reports/allTests/src/components/pure/ProjectPageView.test/index/web/prompt.txt +0 -17
- package/testeranto/reports/allTests/src/components/pure/ProjectPageView.test/index/web/tests.json +0 -32
- package/testeranto/reports/allTests/src/lib/BaseSuite.test/node.test/node/bdd_errors.txt +0 -1
- package/testeranto/reports/allTests/src/lib/BaseSuite.test/node.test/node/lint_errors.txt +0 -0
- package/testeranto/reports/allTests/src/lib/BaseSuite.test/node.test/node/logs.txt +0 -52
- package/testeranto/reports/allTests/src/lib/BaseSuite.test/node.test/node/message.txt +0 -2
- package/testeranto/reports/allTests/src/lib/BaseSuite.test/node.test/node/prompt.txt +0 -13
- package/testeranto/reports/allTests/src/lib/BaseSuite.test/node.test/node/tests.json +0 -31
- package/testeranto/reports/allTests/src/lib/BaseSuite.test/node.test/node/type_errors.txt +0 -111
- package/testeranto/reports/allTests/src/lib/BaseSuite.test/pure.test/pure/bdd_errors.txt +0 -1
- package/testeranto/reports/allTests/src/lib/BaseSuite.test/pure.test/pure/lint_errors.txt +0 -0
- package/testeranto/reports/allTests/src/lib/BaseSuite.test/pure.test/pure/message.txt +0 -2
- package/testeranto/reports/allTests/src/lib/BaseSuite.test/pure.test/pure/prompt.txt +0 -14
- package/testeranto/reports/allTests/src/lib/BaseSuite.test/pure.test/pure/tests.json +0 -31
- package/testeranto/reports/allTests/src/lib/BaseSuite.test/pure.test/pure/type_errors.txt +0 -111
- package/testeranto/reports/allTests/src/lib/BaseSuite.test/web.test/web/bdd_errors.txt +0 -1
- package/testeranto/reports/allTests/src/lib/BaseSuite.test/web.test/web/lint_errors.txt +0 -0
- package/testeranto/reports/allTests/src/lib/BaseSuite.test/web.test/web/logs.txt +0 -108
- package/testeranto/reports/allTests/src/lib/BaseSuite.test/web.test/web/message.txt +0 -2
- package/testeranto/reports/allTests/src/lib/BaseSuite.test/web.test/web/prompt.txt +0 -14
- package/testeranto/reports/allTests/src/lib/BaseSuite.test/web.test/web/tests.json +0 -31
- package/testeranto/reports/allTests/src/lib/BaseSuite.test/web.test/web/type_errors.txt +0 -111
- package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.node/node/bdd_errors.txt +0 -1
- package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.node/node/lint_errors.txt +0 -0
- package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.node/node/logs.txt +0 -35
- package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.node/node/message.txt +0 -2
- package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.node/node/prompt.txt +0 -16
- package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.node/node/tests.json +0 -77
- package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.node/node/type_errors.txt +0 -62
- package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.pure/pure/lint_errors.txt +0 -0
- package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.pure/pure/message.txt +0 -2
- package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.pure/pure/prompt.txt +0 -18
- package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.pure/pure/type_errors.txt +0 -62
- package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.web/web/bdd_errors.txt +0 -1
- package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.web/web/lint_errors.txt +0 -0
- package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.web/web/logs.txt +0 -69
- package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.web/web/message.txt +0 -2
- package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.web/web/prompt.txt +0 -16
- package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.web/web/tests.json +0 -77
- package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.web/web/type_errors.txt +0 -62
- package/testeranto/reports/allTests/src/lib/classBuilder.test/classBuilder.test/node/bdd_errors.txt +0 -1
- package/testeranto/reports/allTests/src/lib/classBuilder.test/classBuilder.test/node/lint_errors.txt +0 -0
- package/testeranto/reports/allTests/src/lib/classBuilder.test/classBuilder.test/node/logs.txt +0 -700
- package/testeranto/reports/allTests/src/lib/classBuilder.test/classBuilder.test/node/message.txt +0 -2
- package/testeranto/reports/allTests/src/lib/classBuilder.test/classBuilder.test/node/prompt.txt +0 -16
- package/testeranto/reports/allTests/src/lib/classBuilder.test/classBuilder.test/node/tests.json +0 -164
- package/testeranto/reports/allTests/src/lib/classBuilder.test/classBuilder.test/node/type_errors.txt +0 -138
- package/testeranto/reports/allTests/src/lib/core.test/core.test/node/lint_errors.txt +0 -21
- package/testeranto/reports/allTests/src/lib/core.test/core.test/node/logs.txt +0 -7
- package/testeranto/reports/allTests/src/lib/core.test/core.test/node/message.txt +0 -2
- package/testeranto/reports/allTests/src/lib/core.test/core.test/node/prompt.txt +0 -18
- package/testeranto/reports/allTests/src/lib/core.test/core.test/node/type_errors.txt +0 -63
- package/testeranto/reports/allTests/src/lib/pmProxy.test/index/node/bdd_errors.txt +0 -1
- package/testeranto/reports/allTests/src/lib/pmProxy.test/index/node/lint_errors.txt +0 -20
- package/testeranto/reports/allTests/src/lib/pmProxy.test/index/node/logs.txt +0 -31
- package/testeranto/reports/allTests/src/lib/pmProxy.test/index/node/message.txt +0 -2
- package/testeranto/reports/allTests/src/lib/pmProxy.test/index/node/prompt.txt +0 -16
- package/testeranto/reports/allTests/src/lib/pmProxy.test/index/node/tests.json +0 -134
- package/testeranto/reports/allTests/src/lib/pmProxy.test/index/node/type_errors.txt +0 -76
- package/testeranto/reports/allTests/summary.json +0 -79
- package/testeranto/reportsnode_build_errors +0 -20
- package/testeranto/reportspure_build_errors +0 -343
- package/testeranto/reportsweb_build_errors +0 -25
|
@@ -17,53 +17,53 @@ const baseProxy = function (pm, mappings) {
|
|
|
17
17
|
},
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
|
-
const butThenProxy = (pm, filepath) => {
|
|
20
|
+
const butThenProxy = (pm, filepath, addArtifact) => {
|
|
21
21
|
return baseProxy(pm, [
|
|
22
22
|
[
|
|
23
23
|
"screencast",
|
|
24
24
|
(opts, p) => {
|
|
25
|
-
var _a;
|
|
26
25
|
const path = `${filepath}/butThen/${opts.path}`;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
26
|
+
addArtifact(path);
|
|
27
|
+
// console.log(
|
|
28
|
+
// `[ARTIFACT] Preparing to add to ${step.constructor.name}:`,
|
|
29
|
+
// path
|
|
30
|
+
// );
|
|
31
|
+
// try {
|
|
32
|
+
// console.log(
|
|
33
|
+
// `[ARTIFACT] Successfully added to ${step.constructor.name}`
|
|
34
|
+
// );
|
|
35
|
+
// console.log(`[ARTIFACT] Current artifacts:`, JSON.stringify(step.artifacts));
|
|
36
|
+
// } catch (e) {
|
|
37
|
+
// console.error(`[ARTIFACT] Failed to add ${path}:`, e);
|
|
38
|
+
// throw e;
|
|
39
|
+
// }
|
|
34
40
|
return [
|
|
35
41
|
Object.assign(Object.assign({}, opts), { path }),
|
|
36
42
|
p,
|
|
37
43
|
];
|
|
38
44
|
},
|
|
39
45
|
],
|
|
40
|
-
[
|
|
41
|
-
|
|
46
|
+
[
|
|
47
|
+
"createWriteStream",
|
|
48
|
+
(fp) => {
|
|
42
49
|
const path = `${filepath}/butThen/${fp}`;
|
|
43
|
-
|
|
44
|
-
if ((_a = pm.currentStep) === null || _a === void 0 ? void 0 : _a.addArtifact) {
|
|
45
|
-
pm.currentStep.addArtifact(path);
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
console.warn('No currentStep or addArtifact method found');
|
|
49
|
-
}
|
|
50
|
+
addArtifact(path);
|
|
50
51
|
return [path];
|
|
51
|
-
}
|
|
52
|
+
},
|
|
53
|
+
],
|
|
52
54
|
[
|
|
53
55
|
"writeFileSync",
|
|
54
56
|
(fp, contents) => {
|
|
55
|
-
var _a, _b;
|
|
56
57
|
const path = `${filepath}/butThen/${fp}`;
|
|
57
|
-
(
|
|
58
|
+
addArtifact(path);
|
|
58
59
|
return [path, contents];
|
|
59
60
|
},
|
|
60
61
|
],
|
|
61
62
|
[
|
|
62
63
|
"customScreenShot",
|
|
63
64
|
(opts, p) => {
|
|
64
|
-
var _a, _b;
|
|
65
65
|
const path = `${filepath}/butThen/${opts.path}`;
|
|
66
|
-
(
|
|
66
|
+
addArtifact(path);
|
|
67
67
|
return [
|
|
68
68
|
Object.assign(Object.assign({}, opts), { path }),
|
|
69
69
|
p,
|
|
@@ -73,186 +73,200 @@ const butThenProxy = (pm, filepath) => {
|
|
|
73
73
|
]);
|
|
74
74
|
};
|
|
75
75
|
exports.butThenProxy = butThenProxy;
|
|
76
|
-
const andWhenProxy = (pm, filepath) =>
|
|
77
|
-
[
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
76
|
+
const andWhenProxy = (pm, filepath, addArtifact) => {
|
|
77
|
+
return baseProxy(pm, [
|
|
78
|
+
[
|
|
79
|
+
"screencast",
|
|
80
|
+
(opts, p) => {
|
|
81
|
+
const path = `${filepath}/andWhen/${opts.path}`;
|
|
82
|
+
addArtifact(path);
|
|
83
|
+
return [
|
|
84
|
+
Object.assign(Object.assign({}, opts), { path }),
|
|
85
|
+
p,
|
|
86
|
+
];
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
[
|
|
90
|
+
"createWriteStream",
|
|
91
|
+
(fp) => {
|
|
92
|
+
const path = `${filepath}/andWhen/${fp}`;
|
|
93
|
+
addArtifact(path);
|
|
94
|
+
return [path];
|
|
95
|
+
},
|
|
96
|
+
],
|
|
97
|
+
[
|
|
98
|
+
"writeFileSync",
|
|
99
|
+
(fp, contents) => {
|
|
100
|
+
const path = `${filepath}/andWhen/${fp}`;
|
|
101
|
+
addArtifact(path);
|
|
102
|
+
return [path, contents];
|
|
103
|
+
},
|
|
104
|
+
],
|
|
105
|
+
[
|
|
106
|
+
"customScreenShot",
|
|
107
|
+
(opts, p) => {
|
|
108
|
+
const path = `${filepath}/andWhen/${opts.path}`;
|
|
109
|
+
// console.log("STEP2", JSON.stringify(step));
|
|
110
|
+
addArtifact(path);
|
|
111
|
+
return [
|
|
112
|
+
Object.assign(Object.assign({}, opts), { path }),
|
|
113
|
+
p,
|
|
114
|
+
];
|
|
115
|
+
},
|
|
116
|
+
],
|
|
117
|
+
]);
|
|
118
|
+
};
|
|
114
119
|
exports.andWhenProxy = andWhenProxy;
|
|
115
|
-
const afterEachProxy = (pm, suite, given) =>
|
|
116
|
-
[
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
]
|
|
120
|
+
const afterEachProxy = (pm, suite, given, addArtifact) => {
|
|
121
|
+
return baseProxy(pm, [
|
|
122
|
+
[
|
|
123
|
+
"screencast",
|
|
124
|
+
(opts, p) => {
|
|
125
|
+
const path = `suite-${suite}/given-${given}/afterEach/${opts.path}`;
|
|
126
|
+
addArtifact(path);
|
|
127
|
+
return [
|
|
128
|
+
Object.assign(Object.assign({}, opts), { path }),
|
|
129
|
+
p,
|
|
130
|
+
];
|
|
131
|
+
},
|
|
132
|
+
],
|
|
133
|
+
[
|
|
134
|
+
"createWriteStream",
|
|
135
|
+
(fp) => {
|
|
136
|
+
const path = `suite-${suite}/afterEach/${fp}`;
|
|
137
|
+
addArtifact(path);
|
|
138
|
+
return [path];
|
|
139
|
+
},
|
|
140
|
+
],
|
|
141
|
+
[
|
|
142
|
+
"writeFileSync",
|
|
143
|
+
(fp, contents) => {
|
|
144
|
+
const path = `suite-${suite}/given-${given}/afterEach/${fp}`;
|
|
145
|
+
addArtifact(path);
|
|
146
|
+
return [path, contents];
|
|
147
|
+
},
|
|
148
|
+
],
|
|
149
|
+
[
|
|
150
|
+
"customScreenShot",
|
|
151
|
+
(opts, p) => {
|
|
152
|
+
const path = `suite-${suite}/given-${given}/afterEach/${opts.path}`;
|
|
153
|
+
addArtifact(path);
|
|
154
|
+
// console.log("STEP3", JSON.stringify(step));
|
|
155
|
+
return [
|
|
156
|
+
Object.assign(Object.assign({}, opts), { path }),
|
|
157
|
+
p,
|
|
158
|
+
];
|
|
159
|
+
},
|
|
160
|
+
],
|
|
161
|
+
]);
|
|
162
|
+
};
|
|
156
163
|
exports.afterEachProxy = afterEachProxy;
|
|
157
|
-
const beforeEachProxy = (pm, suite) =>
|
|
158
|
-
[
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
]);
|
|
164
|
+
const beforeEachProxy = (pm, suite, addArtifact) => {
|
|
165
|
+
return baseProxy(pm, [
|
|
166
|
+
[
|
|
167
|
+
"screencast",
|
|
168
|
+
(opts, p) => {
|
|
169
|
+
const path = `suite-${suite}/beforeEach/${opts.path}`;
|
|
170
|
+
addArtifact(path);
|
|
171
|
+
return [
|
|
172
|
+
Object.assign(Object.assign({}, opts), { path }),
|
|
173
|
+
p,
|
|
174
|
+
];
|
|
175
|
+
},
|
|
176
|
+
],
|
|
177
|
+
[
|
|
178
|
+
"writeFileSync",
|
|
179
|
+
(fp, contents) => {
|
|
180
|
+
const path = `suite-${suite}/beforeEach/${fp}`;
|
|
181
|
+
addArtifact(path);
|
|
182
|
+
return [path, contents];
|
|
183
|
+
},
|
|
184
|
+
],
|
|
185
|
+
[
|
|
186
|
+
"customScreenShot",
|
|
187
|
+
(opts, p) => {
|
|
188
|
+
const path = `suite-${suite}/beforeEach/${opts.path}`;
|
|
189
|
+
addArtifact(path);
|
|
190
|
+
return [
|
|
191
|
+
Object.assign(Object.assign({}, opts), { path }),
|
|
192
|
+
p,
|
|
193
|
+
];
|
|
194
|
+
},
|
|
195
|
+
],
|
|
196
|
+
[
|
|
197
|
+
"createWriteStream",
|
|
198
|
+
(fp) => {
|
|
199
|
+
const path = `suite-${suite}/beforeEach/${fp}`;
|
|
200
|
+
addArtifact(path);
|
|
201
|
+
return [path];
|
|
202
|
+
},
|
|
203
|
+
],
|
|
204
|
+
]);
|
|
205
|
+
};
|
|
198
206
|
exports.beforeEachProxy = beforeEachProxy;
|
|
199
|
-
const beforeAllProxy = (pm, suite) =>
|
|
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
|
-
|
|
227
|
-
]
|
|
207
|
+
const beforeAllProxy = (pm, suite, addArtifact) => {
|
|
208
|
+
return baseProxy(pm, [
|
|
209
|
+
[
|
|
210
|
+
"writeFileSync",
|
|
211
|
+
(fp, contents) => {
|
|
212
|
+
const path = `suite-${suite}/beforeAll/${fp}`;
|
|
213
|
+
addArtifact(path);
|
|
214
|
+
return [path, contents];
|
|
215
|
+
},
|
|
216
|
+
],
|
|
217
|
+
[
|
|
218
|
+
"customScreenShot",
|
|
219
|
+
(opts, p) => {
|
|
220
|
+
const path = `suite-${suite}/beforeAll/${opts.path}`;
|
|
221
|
+
addArtifact(path);
|
|
222
|
+
return [
|
|
223
|
+
Object.assign(Object.assign({}, opts), { path }),
|
|
224
|
+
p,
|
|
225
|
+
];
|
|
226
|
+
},
|
|
227
|
+
],
|
|
228
|
+
[
|
|
229
|
+
"createWriteStream",
|
|
230
|
+
(fp) => {
|
|
231
|
+
const path = `suite-${suite}/beforeAll/${fp}`;
|
|
232
|
+
addArtifact(path);
|
|
233
|
+
return [path];
|
|
234
|
+
},
|
|
235
|
+
],
|
|
236
|
+
]);
|
|
237
|
+
};
|
|
228
238
|
exports.beforeAllProxy = beforeAllProxy;
|
|
229
|
-
const afterAllProxy = (pm, suite) =>
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
(
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
(
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
(
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
]
|
|
239
|
+
const afterAllProxy = (pm, suite, addArtifact) => {
|
|
240
|
+
return baseProxy(pm, [
|
|
241
|
+
[
|
|
242
|
+
"createWriteStream",
|
|
243
|
+
(fp) => {
|
|
244
|
+
const path = `suite-${suite}/afterAll/${fp}`;
|
|
245
|
+
addArtifact(path);
|
|
246
|
+
return [path];
|
|
247
|
+
},
|
|
248
|
+
],
|
|
249
|
+
[
|
|
250
|
+
"writeFileSync",
|
|
251
|
+
(fp, contents) => {
|
|
252
|
+
const path = `suite-${suite}/afterAll/${fp}`;
|
|
253
|
+
console.log("MARK10");
|
|
254
|
+
addArtifact(path);
|
|
255
|
+
return [path, contents];
|
|
256
|
+
},
|
|
257
|
+
],
|
|
258
|
+
[
|
|
259
|
+
"customScreenShot",
|
|
260
|
+
(opts, p) => {
|
|
261
|
+
const path = `suite-${suite}/afterAll/${opts.path}`;
|
|
262
|
+
addArtifact(path);
|
|
263
|
+
console.log("MARK9");
|
|
264
|
+
return [
|
|
265
|
+
Object.assign(Object.assign({}, opts), { path }),
|
|
266
|
+
p,
|
|
267
|
+
];
|
|
268
|
+
},
|
|
269
|
+
],
|
|
270
|
+
]);
|
|
271
|
+
};
|
|
258
272
|
exports.afterAllProxy = afterAllProxy;
|
|
@@ -18,11 +18,11 @@ exports.testAdapter = {
|
|
|
18
18
|
// };
|
|
19
19
|
},
|
|
20
20
|
andWhen: async (store, whenCB, testResource, pm) => {
|
|
21
|
-
const proxiedPM = (0, pmProxy_1.andWhenProxy)(pm, "some/path");
|
|
21
|
+
const proxiedPM = (0, pmProxy_1.andWhenProxy)(pm, "some/path", store);
|
|
22
22
|
return whenCB(store, proxiedPM);
|
|
23
23
|
},
|
|
24
24
|
butThen: async (store, thenCB, testResource, pm) => {
|
|
25
|
-
const proxiedPM = (0, pmProxy_1.butThenProxy)(pm, "some/path");
|
|
25
|
+
const proxiedPM = (0, pmProxy_1.butThenProxy)(pm, "some/path", store);
|
|
26
26
|
return thenCB(store, proxiedPM);
|
|
27
27
|
},
|
|
28
28
|
afterEach: async (store, key, pm) => store,
|
|
@@ -17,7 +17,7 @@ exports.implementation = {
|
|
|
17
17
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
18
18
|
const mockPm = new mockPMBase_1.MockPMBase();
|
|
19
19
|
const filepath = "test/path";
|
|
20
|
-
const
|
|
20
|
+
const rewritePath = createPathRewriter(`${filepath}/butThen`);
|
|
21
21
|
let actualPath;
|
|
22
22
|
let actualContent;
|
|
23
23
|
try {
|
|
@@ -1,8 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
// TODO- this config file is horrible. I need to redo how config files are handled.
|
|
3
4
|
const config = {
|
|
4
5
|
projects: {
|
|
5
|
-
|
|
6
|
+
// staticSite: {
|
|
7
|
+
// tests: [["src/ReportServer.test.ts/index.ts", "node", { ports: 1 }, []]],
|
|
8
|
+
// clearScreen: false,
|
|
9
|
+
// debugger: false,
|
|
10
|
+
// externals: [],
|
|
11
|
+
// featureIngestor: function (s: string): Promise<string> {
|
|
12
|
+
// throw new Error("Function not implemented.");
|
|
13
|
+
// },
|
|
14
|
+
// importPlugins: [],
|
|
15
|
+
// minify: false,
|
|
16
|
+
// nodePlugins: [],
|
|
17
|
+
// ports: ["3334"],
|
|
18
|
+
// src: "",
|
|
19
|
+
// webPlugins: [],
|
|
20
|
+
// },
|
|
21
|
+
core: {
|
|
6
22
|
tests: [
|
|
7
23
|
[
|
|
8
24
|
"src/components/pure/ProjectPageView.test/index.ts",
|
|
@@ -10,36 +26,36 @@ const config = {
|
|
|
10
26
|
{ ports: 0 },
|
|
11
27
|
[],
|
|
12
28
|
],
|
|
13
|
-
["src/lib/BaseSuite.test/node.test.ts", "node", { ports: 0 }, []],
|
|
14
|
-
["src/lib/BaseSuite.test/pure.test.ts", "pure", { ports: 0 }, []],
|
|
15
|
-
["src/lib/BaseSuite.test/web.test.ts", "web", { ports: 0 }, []],
|
|
16
|
-
["src/Pure.test.ts", "pure", { ports: 0 }, []],
|
|
17
|
-
["src/lib/pmProxy.test/index.ts", "node", { ports: 0 }, []],
|
|
18
|
-
["src/lib/core.test/core.test.ts", "node", { ports: 0 }, []],
|
|
19
|
-
[
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
],
|
|
25
|
-
[
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
],
|
|
31
|
-
[
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
],
|
|
37
|
-
[
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
],
|
|
29
|
+
// ["src/lib/BaseSuite.test/node.test.ts", "node", { ports: 0 }, []],
|
|
30
|
+
// ["src/lib/BaseSuite.test/pure.test.ts", "pure", { ports: 0 }, []],
|
|
31
|
+
// ["src/lib/BaseSuite.test/web.test.ts", "web", { ports: 0 }, []],
|
|
32
|
+
// ["src/Pure.test.ts", "pure", { ports: 0 }, []],
|
|
33
|
+
// ["src/lib/pmProxy.test/index.ts", "node", { ports: 0 }, []],
|
|
34
|
+
// ["src/lib/core.test/core.test.ts", "node", { ports: 0 }, []],
|
|
35
|
+
// [
|
|
36
|
+
// "src/lib/classBuilder.test/classBuilder.test.ts",
|
|
37
|
+
// "node",
|
|
38
|
+
// { ports: 0 },
|
|
39
|
+
// [],
|
|
40
|
+
// ],
|
|
41
|
+
// [
|
|
42
|
+
// "src/lib/baseBuilder.test/baseBuilder.test.node.ts",
|
|
43
|
+
// "node",
|
|
44
|
+
// { ports: 0 },
|
|
45
|
+
// [],
|
|
46
|
+
// ],
|
|
47
|
+
// [
|
|
48
|
+
// "src/lib/baseBuilder.test/baseBuilder.test.pure.ts",
|
|
49
|
+
// "pure",
|
|
50
|
+
// { ports: 0 },
|
|
51
|
+
// [],
|
|
52
|
+
// ],
|
|
53
|
+
// [
|
|
54
|
+
// "src/lib/baseBuilder.test/baseBuilder.test.web.ts",
|
|
55
|
+
// "web",
|
|
56
|
+
// { ports: 0 },
|
|
57
|
+
// [],
|
|
58
|
+
// ],
|
|
43
59
|
// ["src/mothership/test.ts", "node", { ports: 0 }, []],
|
|
44
60
|
// ["./src/lib/abstractBase/index.ts", "node", { ports: 0 }, []],
|
|
45
61
|
// [
|
|
@@ -70,6 +86,5 @@ const config = {
|
|
|
70
86
|
webPlugins: [],
|
|
71
87
|
},
|
|
72
88
|
},
|
|
73
|
-
reportDomain: "https://adamwong246.github.io/testeranto",
|
|
74
89
|
};
|
|
75
90
|
exports.default = config;
|