testeranto 0.166.0 → 0.167.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/dist/common/src/Pure.js +2 -2
- package/dist/common/src/lib/baseBuilder.test/baseBuilder.test.mock.js +1 -1
- package/dist/common/src/lib/basebuilder.js +9 -7
- package/dist/common/src/lib/core.test/MockCore.js +17 -15
- package/dist/common/tsconfig.common.tsbuildinfo +1 -1
- package/dist/module/src/Pure.js +2 -2
- package/dist/module/src/lib/baseBuilder.test/baseBuilder.test.mock.js +1 -1
- package/dist/module/src/lib/basebuilder.js +9 -7
- package/dist/module/src/lib/core.test/MockCore.js +17 -15
- package/dist/module/tsconfig.module.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/types/src/lib/index.d.ts +0 -1
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/Pure.ts +2 -2
- package/src/lib/baseBuilder.test/baseBuilder.test.mock.ts +1 -1
- package/src/lib/basebuilder.ts +9 -9
- package/src/lib/core.test/MockCore.ts +26 -19
- package/src/lib/index.ts +1 -1
- package/testeranto/bundles/node/allTests/chunk-H2IBV7SY.mjs +113 -0
- package/testeranto/bundles/node/allTests/chunk-IDCUSTSM.mjs +669 -0
- package/testeranto/bundles/node/allTests/chunk-ZHOULXPN.mjs +252 -0
- package/testeranto/bundles/node/allTests/metafile.json +28 -28
- package/testeranto/bundles/node/allTests/src/lib/BaseSuite.test/node.test.mjs +3 -3
- package/testeranto/bundles/node/allTests/src/lib/baseBuilder.test/baseBuilder.test.node.mjs +3 -3
- package/testeranto/bundles/node/allTests/src/lib/classBuilder.test/classBuilder.test.mjs +3 -3
- package/testeranto/bundles/node/allTests/src/lib/core.test/core.test.mjs +11 -8
- package/testeranto/bundles/node/allTests/src/lib/pmProxy.test/index.mjs +2 -2
- package/testeranto/bundles/pure/allTests/chunk-4ULDTZFU.mjs +666 -0
- package/testeranto/bundles/pure/allTests/chunk-5SBJWHSZ.mjs +200 -0
- package/testeranto/bundles/pure/allTests/metafile.json +33 -33
- package/testeranto/bundles/pure/allTests/src/Pure.test.mjs +2 -2
- package/testeranto/bundles/pure/allTests/src/lib/BaseSuite.test/pure.test.mjs +2 -2
- package/testeranto/bundles/pure/allTests/src/lib/baseBuilder.test/baseBuilder.test.pure.mjs +2 -2
- package/testeranto/bundles/web/allTests/chunk-46E6YGGN.mjs +847 -0
- package/testeranto/bundles/web/allTests/metafile.json +10 -10
- package/testeranto/bundles/web/allTests/src/lib/BaseSuite.test/web.test.mjs +1 -1
- package/testeranto/bundles/web/allTests/src/lib/baseBuilder.test/baseBuilder.test.web.mjs +2 -2
- package/testeranto/reports/allTests/src/lib/BaseSuite.test/node.test/node/logs.txt +0 -0
- package/testeranto/reports/allTests/src/lib/BaseSuite.test/web.test/web/logs.txt +0 -0
- package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.node/node/logs.txt +0 -0
- package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.web/web/logs.txt +0 -0
- package/testeranto/reports/allTests/src/lib/classBuilder.test/classBuilder.test/node/logs.txt +0 -0
- package/testeranto/reports/allTests/src/lib/core.test/core.test/node/lint_errors.txt +0 -12
- package/testeranto/reports/allTests/src/lib/core.test/core.test/node/type_errors.txt +2 -5
- package/testeranto/reports/allTests/src/lib/pmProxy.test/index/node/logs.txt +0 -0
- package/testeranto/reports/allTests/summary.json +2 -2
- package/tsc.log +236 -234
package/dist/module/src/Pure.js
CHANGED
|
@@ -20,7 +20,7 @@ export class PureTesteranto extends Testeranto {
|
|
|
20
20
|
failed: true,
|
|
21
21
|
fails: 1,
|
|
22
22
|
artifacts: [],
|
|
23
|
-
logPromise: Promise.resolve(),
|
|
23
|
+
// logPromise: Promise.resolve(),
|
|
24
24
|
features: [],
|
|
25
25
|
};
|
|
26
26
|
}
|
|
@@ -36,7 +36,7 @@ export class PureTesteranto extends Testeranto {
|
|
|
36
36
|
failed: true,
|
|
37
37
|
fails: 1,
|
|
38
38
|
artifacts: [],
|
|
39
|
-
logPromise: Promise.resolve(),
|
|
39
|
+
// logPromise: Promise.resolve(),
|
|
40
40
|
features: [],
|
|
41
41
|
};
|
|
42
42
|
}
|
|
@@ -28,17 +28,19 @@ export class BaseBuilder {
|
|
|
28
28
|
},
|
|
29
29
|
runner,
|
|
30
30
|
receiveTestResourceConfig: async function (puppetMaster) {
|
|
31
|
-
const logFilePath = "logs.txt";
|
|
32
|
-
const access = await puppetMaster.createWriteStream(
|
|
31
|
+
// const logFilePath = "logs.txt";
|
|
32
|
+
// const access: number = await puppetMaster.createWriteStream(
|
|
33
|
+
// logFilePath
|
|
34
|
+
// );
|
|
33
35
|
// deprecated?
|
|
34
36
|
const tLog = async (...l) => {
|
|
35
37
|
//
|
|
36
38
|
};
|
|
37
39
|
const suiteDone = await runner(puppetMaster, tLog);
|
|
38
|
-
const logPromise = new Promise(async (res) => {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
});
|
|
40
|
+
// const logPromise = new Promise(async (res) => {
|
|
41
|
+
// await puppetMaster.end(access);
|
|
42
|
+
// res(true);
|
|
43
|
+
// });
|
|
42
44
|
const fails = suiteDone.fails;
|
|
43
45
|
await puppetMaster.writeFileSync(`bdd_errors.txt`, fails.toString());
|
|
44
46
|
await puppetMaster.writeFileSync(`tests.json`, JSON.stringify(this.toObj(), null, 2));
|
|
@@ -46,7 +48,7 @@ export class BaseBuilder {
|
|
|
46
48
|
failed: fails > 0,
|
|
47
49
|
fails,
|
|
48
50
|
artifacts: this.artifacts || [],
|
|
49
|
-
logPromise,
|
|
51
|
+
// logPromise,
|
|
50
52
|
features: suiteDone.features(),
|
|
51
53
|
};
|
|
52
54
|
},
|
|
@@ -1,32 +1,34 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
1
3
|
import TesterantoCore from "../core";
|
|
2
4
|
/**
|
|
3
5
|
* Concrete implementation of Testeranto for testing purposes
|
|
4
6
|
*/
|
|
5
7
|
export class MockCore extends TesterantoCore {
|
|
6
8
|
constructor(input, testSpecification, testImplementation, testResourceRequirement = { ports: [] }, testAdapter, uberCatcher = (cb) => cb()) {
|
|
7
|
-
console.log(
|
|
9
|
+
console.log("[DEBUG] MockCore constructor starting...");
|
|
8
10
|
if (!testImplementation) {
|
|
9
|
-
throw new Error(
|
|
11
|
+
throw new Error("testImplementation is required");
|
|
10
12
|
}
|
|
11
13
|
if (!testSpecification) {
|
|
12
|
-
console.warn(
|
|
14
|
+
console.warn("[WARN] testSpecification is null/undefined - tests may fail");
|
|
13
15
|
}
|
|
14
|
-
console.log(
|
|
15
|
-
console.log(
|
|
16
|
-
console.log(
|
|
17
|
-
console.log(
|
|
18
|
-
console.log(
|
|
19
|
-
console.log(
|
|
16
|
+
console.log("[DEBUG] MockCore constructor called with:");
|
|
17
|
+
console.log("- input:", JSON.stringify(input, null, 2));
|
|
18
|
+
console.log("- testSpecification keys:", Object.keys(testSpecification));
|
|
19
|
+
console.log("- testImplementation keys:", Object.keys(testImplementation));
|
|
20
|
+
console.log("- testResourceRequirement:", JSON.stringify(testResourceRequirement));
|
|
21
|
+
console.log("- testAdapter keys:", Object.keys(testAdapter));
|
|
20
22
|
// Validate required implementation methods
|
|
21
|
-
const requiredMethods = [
|
|
22
|
-
requiredMethods.forEach(method => {
|
|
23
|
+
const requiredMethods = ["suites", "givens", "whens", "thens"];
|
|
24
|
+
requiredMethods.forEach((method) => {
|
|
23
25
|
if (!testImplementation[method]) {
|
|
24
26
|
throw new Error(`Missing required implementation method: ${method}`);
|
|
25
27
|
}
|
|
26
28
|
});
|
|
27
|
-
console.log(
|
|
28
|
-
this.testResourceRequirement = testResourceRequirement;
|
|
29
|
-
this.testAdapter = testAdapter;
|
|
29
|
+
console.log("[DEBUG] Validation passed, calling super...");
|
|
30
|
+
// this.testResourceRequirement = testResourceRequirement;
|
|
31
|
+
// this.testAdapter = testAdapter;
|
|
30
32
|
super(input, testSpecification, testImplementation, testResourceRequirement, testAdapter, uberCatcher);
|
|
31
33
|
this.specs = [];
|
|
32
34
|
this.testJobs = [];
|
|
@@ -37,7 +39,7 @@ export class MockCore extends TesterantoCore {
|
|
|
37
39
|
failed: false,
|
|
38
40
|
fails: 0,
|
|
39
41
|
artifacts: [],
|
|
40
|
-
logPromise: Promise.resolve(),
|
|
42
|
+
// logPromise: Promise.resolve(),
|
|
41
43
|
features: [],
|
|
42
44
|
};
|
|
43
45
|
}
|