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/common/src/Pure.js
CHANGED
|
@@ -26,7 +26,7 @@ class PureTesteranto extends core_js_1.default {
|
|
|
26
26
|
failed: true,
|
|
27
27
|
fails: 1,
|
|
28
28
|
artifacts: [],
|
|
29
|
-
logPromise: Promise.resolve(),
|
|
29
|
+
// logPromise: Promise.resolve(),
|
|
30
30
|
features: [],
|
|
31
31
|
};
|
|
32
32
|
}
|
|
@@ -42,7 +42,7 @@ class PureTesteranto extends core_js_1.default {
|
|
|
42
42
|
failed: true,
|
|
43
43
|
fails: 1,
|
|
44
44
|
artifacts: [],
|
|
45
|
-
logPromise: Promise.resolve(),
|
|
45
|
+
// logPromise: Promise.resolve(),
|
|
46
46
|
features: [],
|
|
47
47
|
};
|
|
48
48
|
}
|
|
@@ -31,17 +31,19 @@ class BaseBuilder {
|
|
|
31
31
|
},
|
|
32
32
|
runner,
|
|
33
33
|
receiveTestResourceConfig: async function (puppetMaster) {
|
|
34
|
-
const logFilePath = "logs.txt";
|
|
35
|
-
const access = await puppetMaster.createWriteStream(
|
|
34
|
+
// const logFilePath = "logs.txt";
|
|
35
|
+
// const access: number = await puppetMaster.createWriteStream(
|
|
36
|
+
// logFilePath
|
|
37
|
+
// );
|
|
36
38
|
// deprecated?
|
|
37
39
|
const tLog = async (...l) => {
|
|
38
40
|
//
|
|
39
41
|
};
|
|
40
42
|
const suiteDone = await runner(puppetMaster, tLog);
|
|
41
|
-
const logPromise = new Promise(async (res) => {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
});
|
|
43
|
+
// const logPromise = new Promise(async (res) => {
|
|
44
|
+
// await puppetMaster.end(access);
|
|
45
|
+
// res(true);
|
|
46
|
+
// });
|
|
45
47
|
const fails = suiteDone.fails;
|
|
46
48
|
await puppetMaster.writeFileSync(`bdd_errors.txt`, fails.toString());
|
|
47
49
|
await puppetMaster.writeFileSync(`tests.json`, JSON.stringify(this.toObj(), null, 2));
|
|
@@ -49,7 +51,7 @@ class BaseBuilder {
|
|
|
49
51
|
failed: fails > 0,
|
|
50
52
|
fails,
|
|
51
53
|
artifacts: this.artifacts || [],
|
|
52
|
-
logPromise,
|
|
54
|
+
// logPromise,
|
|
53
55
|
features: suiteDone.features(),
|
|
54
56
|
};
|
|
55
57
|
},
|
|
@@ -4,35 +4,37 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.MockCore = void 0;
|
|
7
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
8
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
7
9
|
const core_1 = __importDefault(require("../core"));
|
|
8
10
|
/**
|
|
9
11
|
* Concrete implementation of Testeranto for testing purposes
|
|
10
12
|
*/
|
|
11
13
|
class MockCore extends core_1.default {
|
|
12
14
|
constructor(input, testSpecification, testImplementation, testResourceRequirement = { ports: [] }, testAdapter, uberCatcher = (cb) => cb()) {
|
|
13
|
-
console.log(
|
|
15
|
+
console.log("[DEBUG] MockCore constructor starting...");
|
|
14
16
|
if (!testImplementation) {
|
|
15
|
-
throw new Error(
|
|
17
|
+
throw new Error("testImplementation is required");
|
|
16
18
|
}
|
|
17
19
|
if (!testSpecification) {
|
|
18
|
-
console.warn(
|
|
20
|
+
console.warn("[WARN] testSpecification is null/undefined - tests may fail");
|
|
19
21
|
}
|
|
20
|
-
console.log(
|
|
21
|
-
console.log(
|
|
22
|
-
console.log(
|
|
23
|
-
console.log(
|
|
24
|
-
console.log(
|
|
25
|
-
console.log(
|
|
22
|
+
console.log("[DEBUG] MockCore constructor called with:");
|
|
23
|
+
console.log("- input:", JSON.stringify(input, null, 2));
|
|
24
|
+
console.log("- testSpecification keys:", Object.keys(testSpecification));
|
|
25
|
+
console.log("- testImplementation keys:", Object.keys(testImplementation));
|
|
26
|
+
console.log("- testResourceRequirement:", JSON.stringify(testResourceRequirement));
|
|
27
|
+
console.log("- testAdapter keys:", Object.keys(testAdapter));
|
|
26
28
|
// Validate required implementation methods
|
|
27
|
-
const requiredMethods = [
|
|
28
|
-
requiredMethods.forEach(method => {
|
|
29
|
+
const requiredMethods = ["suites", "givens", "whens", "thens"];
|
|
30
|
+
requiredMethods.forEach((method) => {
|
|
29
31
|
if (!testImplementation[method]) {
|
|
30
32
|
throw new Error(`Missing required implementation method: ${method}`);
|
|
31
33
|
}
|
|
32
34
|
});
|
|
33
|
-
console.log(
|
|
34
|
-
this.testResourceRequirement = testResourceRequirement;
|
|
35
|
-
this.testAdapter = testAdapter;
|
|
35
|
+
console.log("[DEBUG] Validation passed, calling super...");
|
|
36
|
+
// this.testResourceRequirement = testResourceRequirement;
|
|
37
|
+
// this.testAdapter = testAdapter;
|
|
36
38
|
super(input, testSpecification, testImplementation, testResourceRequirement, testAdapter, uberCatcher);
|
|
37
39
|
this.specs = [];
|
|
38
40
|
this.testJobs = [];
|
|
@@ -43,7 +45,7 @@ class MockCore extends core_1.default {
|
|
|
43
45
|
failed: false,
|
|
44
46
|
fails: 0,
|
|
45
47
|
artifacts: [],
|
|
46
|
-
logPromise: Promise.resolve(),
|
|
48
|
+
// logPromise: Promise.resolve(),
|
|
47
49
|
features: [],
|
|
48
50
|
};
|
|
49
51
|
}
|