testeranto 0.79.4 → 0.79.6
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/TaskMan1.Dockerfile +2 -1
- package/package.json +1 -1
- package/src/TaskManBackEnd.ts +2 -2
- package/dist/TaskMan.Dockerfile +0 -23
- package/dist/common/Features.js +0 -84
- package/dist/common/Node.js +0 -23
- package/dist/common/PM/index.js +0 -7
- package/dist/common/PM/main.js +0 -641
- package/dist/common/PM/node.js +0 -88
- package/dist/common/PM/web.js +0 -132
- package/dist/common/Project.js +0 -186
- package/dist/common/Puppeteer.js +0 -104
- package/dist/common/Reporter.js +0 -112
- package/dist/common/Scheduler.js +0 -1
- package/dist/common/SubPackages/puppeteer.js +0 -21
- package/dist/common/SubPackages/react/component/node.js +0 -19
- package/dist/common/SubPackages/react/component/web.js +0 -19
- package/dist/common/SubPackages/react/jsx/index.js +0 -25
- package/dist/common/SubPackages/react/jsx/node.js +0 -10
- package/dist/common/SubPackages/react/jsx/web.js +0 -10
- package/dist/common/SubPackages/react-dom/component/node.js +0 -101
- package/dist/common/SubPackages/react-dom/component/web.js +0 -93
- package/dist/common/SubPackages/react-dom/jsx/index.js +0 -2
- package/dist/common/SubPackages/react-dom/jsx/node.js +0 -39
- package/dist/common/SubPackages/react-dom/jsx/web.js +0 -118
- package/dist/common/SubPackages/react-test-renderer/MemoExoticComponent/node.js +0 -44
- package/dist/common/SubPackages/react-test-renderer/component/index.js +0 -2
- package/dist/common/SubPackages/react-test-renderer/component/interface.js +0 -68
- package/dist/common/SubPackages/react-test-renderer/component/node.js +0 -8
- package/dist/common/SubPackages/react-test-renderer/component/web.js +0 -8
- package/dist/common/SubPackages/react-test-renderer/fc/node.js +0 -50
- package/dist/common/SubPackages/react-test-renderer/fc/web.js +0 -50
- package/dist/common/SubPackages/react-test-renderer/jsx/index.js +0 -48
- package/dist/common/SubPackages/react-test-renderer/jsx/node.js +0 -10
- package/dist/common/SubPackages/react-test-renderer/jsx/web.js +0 -10
- package/dist/common/SubPackages/react-test-renderer/jsx-promised/index.js +0 -42
- package/dist/common/SubPackages/react-test-renderer/jsx-promised/node.js +0 -10
- package/dist/common/SubPackages/react-test-renderer/jsx-promised/web.js +0 -10
- package/dist/common/TaskManBackEnd.js +0 -174
- package/dist/common/Types.js +0 -2
- package/dist/common/Web.js +0 -39
- package/dist/common/esbuildConfigs/features.js +0 -14
- package/dist/common/esbuildConfigs/index.js +0 -21
- package/dist/common/esbuildConfigs/inputFilesPlugin.js +0 -49
- package/dist/common/esbuildConfigs/node.js +0 -39
- package/dist/common/esbuildConfigs/report.js +0 -13
- package/dist/common/esbuildConfigs/tests.js +0 -13
- package/dist/common/esbuildConfigs/web.js +0 -57
- package/dist/common/lib/abstractBase.js +0 -553
- package/dist/common/lib/basebuilder.js +0 -79
- package/dist/common/lib/classBuilder.js +0 -42
- package/dist/common/lib/core.js +0 -75
- package/dist/common/lib/index.js +0 -22
- package/dist/common/lib/types.js +0 -2
- package/dist/common/mongooseSchemas.js +0 -56
- package/dist/common/package.json +0 -3
- package/dist/common/preload.js +0 -15
- package/dist/common/puppeteerConfiger.js +0 -24
- package/dist/common/report.html.js +0 -31
- package/dist/common/tsconfig.common.tsbuildinfo +0 -1
- package/dist/common/utils.js +0 -16
- package/dist/common/web.html.js +0 -22
- package/dist/module/ExampleTab.js +0 -112
- package/dist/module/Features.js +0 -73
- package/dist/module/Node.js +0 -18
- package/dist/module/PM/index.js +0 -3
- package/dist/module/PM/main.js +0 -611
- package/dist/module/PM/node.js +0 -81
- package/dist/module/PM/web.js +0 -125
- package/dist/module/Project.js +0 -179
- package/dist/module/Puppeteer.js +0 -99
- package/dist/module/Reporter.js +0 -107
- package/dist/module/Scheduler.js +0 -1
- package/dist/module/SubPackages/puppeteer.js +0 -16
- package/dist/module/SubPackages/react/component/node.js +0 -14
- package/dist/module/SubPackages/react/component/web.js +0 -14
- package/dist/module/SubPackages/react/jsx/index.js +0 -19
- package/dist/module/SubPackages/react/jsx/node.js +0 -5
- package/dist/module/SubPackages/react/jsx/web.js +0 -5
- package/dist/module/SubPackages/react-dom/component/node.js +0 -93
- package/dist/module/SubPackages/react-dom/component/web.js +0 -88
- package/dist/module/SubPackages/react-dom/jsx/index.js +0 -1
- package/dist/module/SubPackages/react-dom/jsx/node.js +0 -31
- package/dist/module/SubPackages/react-dom/jsx/web.js +0 -90
- package/dist/module/SubPackages/react-test-renderer/MemoExoticComponent/node.js +0 -16
- package/dist/module/SubPackages/react-test-renderer/component/index.js +0 -1
- package/dist/module/SubPackages/react-test-renderer/component/interface.js +0 -39
- package/dist/module/SubPackages/react-test-renderer/component/node.js +0 -3
- package/dist/module/SubPackages/react-test-renderer/component/web.js +0 -3
- package/dist/module/SubPackages/react-test-renderer/fc/node.js +0 -22
- package/dist/module/SubPackages/react-test-renderer/fc/web.js +0 -22
- package/dist/module/SubPackages/react-test-renderer/jsx/index.js +0 -19
- package/dist/module/SubPackages/react-test-renderer/jsx/node.js +0 -5
- package/dist/module/SubPackages/react-test-renderer/jsx/web.js +0 -5
- package/dist/module/SubPackages/react-test-renderer/jsx-promised/index.js +0 -16
- package/dist/module/SubPackages/react-test-renderer/jsx-promised/node.js +0 -5
- package/dist/module/SubPackages/react-test-renderer/jsx-promised/web.js +0 -5
- package/dist/module/TaskManBackEnd.js +0 -169
- package/dist/module/TaskManFrontEnd.js +0 -600
- package/dist/module/Types.js +0 -1
- package/dist/module/Web.js +0 -34
- package/dist/module/esbuildConfigs/features.js +0 -12
- package/dist/module/esbuildConfigs/index.js +0 -19
- package/dist/module/esbuildConfigs/inputFilesPlugin.js +0 -44
- package/dist/module/esbuildConfigs/node.js +0 -34
- package/dist/module/esbuildConfigs/report.js +0 -11
- package/dist/module/esbuildConfigs/tests.js +0 -11
- package/dist/module/esbuildConfigs/web.js +0 -52
- package/dist/module/lib/abstractBase.js +0 -545
- package/dist/module/lib/basebuilder.js +0 -75
- package/dist/module/lib/classBuilder.js +0 -38
- package/dist/module/lib/core.js +0 -72
- package/dist/module/lib/index.js +0 -18
- package/dist/module/lib/types.js +0 -1
- package/dist/module/mongooseSchemas.js +0 -50
- package/dist/module/package.json +0 -3
- package/dist/module/preload.js +0 -15
- package/dist/module/puppeteerConfiger.js +0 -19
- package/dist/module/report.html.js +0 -29
- package/dist/module/tsconfig.module.tsbuildinfo +0 -1
- package/dist/module/utils.js +0 -9
- package/dist/module/web.html.js +0 -20
- package/dist/prebuild/Report.css +0 -11358
- package/dist/prebuild/Report.js +0 -37666
- package/dist/prebuild/TaskManBackEnd.mjs +0 -180
- package/dist/prebuild/TaskManFrontEnd.css +0 -12301
- package/dist/prebuild/TaskManFrontEnd.js +0 -81737
- package/dist/types/Features.d.ts +0 -68
- package/dist/types/Node.d.ts +0 -6
- package/dist/types/PM/index.d.ts +0 -20
- package/dist/types/PM/main.d.ts +0 -31
- package/dist/types/PM/node.d.ts +0 -27
- package/dist/types/PM/web.d.ts +0 -25
- package/dist/types/Project.d.ts +0 -7
- package/dist/types/Puppeteer.d.ts +0 -1
- package/dist/types/Reporter.d.ts +0 -1
- package/dist/types/Scheduler.d.ts +0 -0
- package/dist/types/SubPackages/puppeteer.d.ts +0 -6
- package/dist/types/SubPackages/react/component/node.d.ts +0 -7
- package/dist/types/SubPackages/react/component/web.d.ts +0 -7
- package/dist/types/SubPackages/react/jsx/index.d.ts +0 -12
- package/dist/types/SubPackages/react/jsx/node.d.ts +0 -4
- package/dist/types/SubPackages/react/jsx/web.d.ts +0 -4
- package/dist/types/SubPackages/react-dom/component/node.d.ts +0 -12
- package/dist/types/SubPackages/react-dom/component/web.d.ts +0 -11
- package/dist/types/SubPackages/react-dom/jsx/index.d.ts +0 -6
- package/dist/types/SubPackages/react-dom/jsx/node.d.ts +0 -6
- package/dist/types/SubPackages/react-dom/jsx/web.d.ts +0 -5
- package/dist/types/SubPackages/react-test-renderer/MemoExoticComponent/node.d.ts +0 -5
- package/dist/types/SubPackages/react-test-renderer/component/index.d.ts +0 -13
- package/dist/types/SubPackages/react-test-renderer/component/interface.d.ts +0 -9
- package/dist/types/SubPackages/react-test-renderer/component/node.d.ts +0 -8
- package/dist/types/SubPackages/react-test-renderer/component/web.d.ts +0 -3
- package/dist/types/SubPackages/react-test-renderer/fc/node.d.ts +0 -8
- package/dist/types/SubPackages/react-test-renderer/fc/web.d.ts +0 -8
- package/dist/types/SubPackages/react-test-renderer/jsx/index.d.ts +0 -16
- package/dist/types/SubPackages/react-test-renderer/jsx/node.d.ts +0 -8
- package/dist/types/SubPackages/react-test-renderer/jsx/web.d.ts +0 -8
- package/dist/types/SubPackages/react-test-renderer/jsx-promised/index.d.ts +0 -15
- package/dist/types/SubPackages/react-test-renderer/jsx-promised/node.d.ts +0 -4
- package/dist/types/SubPackages/react-test-renderer/jsx-promised/web.d.ts +0 -4
- package/dist/types/TaskManBackEnd.d.ts +0 -1
- package/dist/types/Types.d.ts +0 -50
- package/dist/types/Web.d.ts +0 -6
- package/dist/types/esbuildConfigs/features.d.ts +0 -4
- package/dist/types/esbuildConfigs/index.d.ts +0 -4
- package/dist/types/esbuildConfigs/inputFilesPlugin.d.ts +0 -5
- package/dist/types/esbuildConfigs/node.d.ts +0 -4
- package/dist/types/esbuildConfigs/report.d.ts +0 -4
- package/dist/types/esbuildConfigs/tests.d.ts +0 -4
- package/dist/types/esbuildConfigs/web.d.ts +0 -4
- package/dist/types/lib/abstractBase.d.ts +0 -104
- package/dist/types/lib/basebuilder.d.ts +0 -27
- package/dist/types/lib/classBuilder.d.ts +0 -7
- package/dist/types/lib/core.d.ts +0 -8
- package/dist/types/lib/index.d.ts +0 -59
- package/dist/types/lib/types.d.ts +0 -64
- package/dist/types/mongooseSchemas.d.ts +0 -124
- package/dist/types/preload.d.ts +0 -0
- package/dist/types/puppeteerConfiger.d.ts +0 -4
- package/dist/types/report.html.d.ts +0 -2
- package/dist/types/tsconfig.types.tsbuildinfo +0 -1
- package/dist/types/utils.d.ts +0 -2
- package/dist/types/web.html.d.ts +0 -2
package/TaskMan1.Dockerfile
CHANGED
|
@@ -4,6 +4,7 @@ WORKDIR /usr/src/app
|
|
|
4
4
|
COPY package.json /usr/src/app
|
|
5
5
|
RUN yarn install
|
|
6
6
|
COPY ./src/ /usr/src/app/src
|
|
7
|
+
COPY ./testeranto.json /usr/src/app/testeranto.json
|
|
7
8
|
# COPY prebuild.sh /usr/src/app
|
|
8
9
|
# COPY postBuild.sh /usr/src/app
|
|
9
10
|
|
|
@@ -11,7 +12,7 @@ COPY ./src/ /usr/src/app/src
|
|
|
11
12
|
# RUN yarn build
|
|
12
13
|
|
|
13
14
|
RUN cp ./node_modules/testeranto/dist/prebuild/TaskManBackEnd.mjs /usr/src/app/TaskManBackEnd.mjs
|
|
14
|
-
RUN cp ./node_modules/testeranto/dist/prebuild/TaskManFrontEnd.js /usr/src/app/TaskManFrontEnd.
|
|
15
|
+
RUN cp ./node_modules/testeranto/dist/prebuild/TaskManFrontEnd.js /usr/src/app/TaskManFrontEnd.js
|
|
15
16
|
RUN cp ./node_modules/testeranto/dist/prebuild/TaskManFrontEnd.css /usr/src/app/TaskManFrontEnd.css
|
|
16
17
|
|
|
17
18
|
# RUN ts-node-esm ./node_modules/testeranto/dist/prebuild/TaskManBackEnd.mjs
|
package/package.json
CHANGED
package/src/TaskManBackEnd.ts
CHANGED
|
@@ -94,11 +94,11 @@ new MongoClient(`mongodb://${process.env.MONGO_HOST || "127.0.0.1"}:27017`)
|
|
|
94
94
|
const roomsModel = ChatChannel.discriminator("Room", RoomSchema);
|
|
95
95
|
|
|
96
96
|
app.get("/TaskManFrontend.js", (req, res) => {
|
|
97
|
-
res.sendFile(`${process.cwd()}/
|
|
97
|
+
res.sendFile(`${process.cwd()}/TaskManFrontEnd.js`);
|
|
98
98
|
});
|
|
99
99
|
|
|
100
100
|
app.get("/TaskManFrontEnd.css", (req, res) => {
|
|
101
|
-
res.sendFile(`${process.cwd()}/
|
|
101
|
+
res.sendFile(`${process.cwd()}/TaskManFrontEnd.css`);
|
|
102
102
|
});
|
|
103
103
|
|
|
104
104
|
// app.get(`/preMergeCheck`, async (req, res) => {
|
package/dist/TaskMan.Dockerfile
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
FROM node:latest
|
|
2
|
-
RUN mkdir -p /usr/src/app
|
|
3
|
-
WORKDIR /usr/src/app
|
|
4
|
-
COPY package.json /usr/src/app
|
|
5
|
-
RUN yarn install
|
|
6
|
-
COPY ./src/ /usr/src/app/src
|
|
7
|
-
COPY prebuild.sh /usr/src/app
|
|
8
|
-
COPY postBuild.sh /usr/src/app
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
RUN yarn build
|
|
12
|
-
|
|
13
|
-
RUN cp ./dist/prebuild/TaskManBackEnd.mjs /usr/src/app/TaskManBackEnd.mjs
|
|
14
|
-
RUN cp ./dist/prebuild/TaskManFrontEnd.js /usr/src/app/TaskManFrontEnd.mjs
|
|
15
|
-
RUN cp ./dist/prebuild/TaskManFrontEnd.css /usr/src/app/TaskManFrontEnd.css
|
|
16
|
-
|
|
17
|
-
# RUN ts-node-esm ./node_modules/testeranto/dist/prebuild/TaskManBackEnd.mjs
|
|
18
|
-
|
|
19
|
-
EXPOSE 3000
|
|
20
|
-
EXPOSE 27017
|
|
21
|
-
ENV MONGO_HOST=host.docker.internal
|
|
22
|
-
# CMD ['yarn', 'testeranto-testrun', '&', 'yarn', 'testeranto-taskman']
|
|
23
|
-
CMD ["node", "./TaskManBackEnd.mjs"]
|
package/dist/common/Features.js
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.DirectedGraph = exports.TesterantoFeatures = exports.TesterantoGraphDirectedAcyclic = exports.TesterantoGraphDirected = exports.TesterantoGraphUndirected = exports.BaseFeature = void 0;
|
|
7
|
-
const graphology_umd_js_1 = __importDefault(require("graphology/dist/graphology.umd.js"));
|
|
8
|
-
const { DirectedGraph, UndirectedGraph } = graphology_umd_js_1.default;
|
|
9
|
-
exports.DirectedGraph = DirectedGraph;
|
|
10
|
-
class TesterantoGraph {
|
|
11
|
-
constructor(name) {
|
|
12
|
-
this.name = name;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
class BaseFeature {
|
|
16
|
-
constructor(name) {
|
|
17
|
-
this.name = name;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.BaseFeature = BaseFeature;
|
|
21
|
-
class TesterantoGraphUndirected {
|
|
22
|
-
constructor(name) {
|
|
23
|
-
this.name = name;
|
|
24
|
-
this.graph = new UndirectedGraph();
|
|
25
|
-
}
|
|
26
|
-
connect(a, b, relation) {
|
|
27
|
-
this.graph.mergeEdge(a, b, { type: relation });
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
exports.TesterantoGraphUndirected = TesterantoGraphUndirected;
|
|
31
|
-
class TesterantoGraphDirected {
|
|
32
|
-
constructor(name) {
|
|
33
|
-
this.name = name;
|
|
34
|
-
this.graph = new DirectedGraph();
|
|
35
|
-
}
|
|
36
|
-
connect(to, from, relation) {
|
|
37
|
-
this.graph.mergeEdge(to, from, { type: relation });
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
exports.TesterantoGraphDirected = TesterantoGraphDirected;
|
|
41
|
-
class TesterantoGraphDirectedAcyclic {
|
|
42
|
-
constructor(name) {
|
|
43
|
-
this.name = name;
|
|
44
|
-
this.graph = new DirectedGraph();
|
|
45
|
-
}
|
|
46
|
-
connect(to, from, relation) {
|
|
47
|
-
this.graph.mergeEdge(to, from, { type: relation });
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
exports.TesterantoGraphDirectedAcyclic = TesterantoGraphDirectedAcyclic;
|
|
51
|
-
class TesterantoFeatures {
|
|
52
|
-
constructor(features, graphs) {
|
|
53
|
-
this.features = features;
|
|
54
|
-
this.graphs = graphs;
|
|
55
|
-
}
|
|
56
|
-
networks() {
|
|
57
|
-
return [
|
|
58
|
-
...this.graphs.undirected.values(),
|
|
59
|
-
...this.graphs.directed.values(),
|
|
60
|
-
...this.graphs.dags.values(),
|
|
61
|
-
];
|
|
62
|
-
}
|
|
63
|
-
toObj() {
|
|
64
|
-
return {
|
|
65
|
-
features: Object.entries(this.features).map(([name, feature]) => {
|
|
66
|
-
return Object.assign(Object.assign({}, feature), { inNetworks: this.networks()
|
|
67
|
-
.filter((network) => {
|
|
68
|
-
return network.graph.hasNode(feature.name);
|
|
69
|
-
})
|
|
70
|
-
.map((network) => {
|
|
71
|
-
return {
|
|
72
|
-
network: network.name,
|
|
73
|
-
neighbors: network.graph.neighbors(feature.name),
|
|
74
|
-
};
|
|
75
|
-
}) });
|
|
76
|
-
}),
|
|
77
|
-
networks: this.networks().map((network) => {
|
|
78
|
-
return Object.assign({}, network);
|
|
79
|
-
}),
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
exports.TesterantoFeatures = TesterantoFeatures;
|
|
84
|
-
exports.default = {};
|
package/dist/common/Node.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const core_js_1 = __importDefault(require("./lib/core.js"));
|
|
7
|
-
const index_js_1 = require("./lib/index.js");
|
|
8
|
-
const node_js_1 = require("./PM/node.js");
|
|
9
|
-
class NodeTesteranto extends core_js_1.default {
|
|
10
|
-
constructor(input, testSpecification, testImplementation, testResourceRequirement, testInterface) {
|
|
11
|
-
super(input, testSpecification, testImplementation, testResourceRequirement, testInterface);
|
|
12
|
-
}
|
|
13
|
-
async receiveTestResourceConfig(partialTestResource) {
|
|
14
|
-
const t = JSON.parse(partialTestResource);
|
|
15
|
-
console.log("receiveTestResourceConfig", t);
|
|
16
|
-
const pm = new node_js_1.PM_Node(t);
|
|
17
|
-
const { failed, artifacts, logPromise } = await this.testJobs[0].receiveTestResourceConfig(pm);
|
|
18
|
-
pm.customclose();
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
exports.default = async (input, testSpecification, testImplementation, testInterface, testResourceRequirement = index_js_1.defaultTestResourceRequirement) => {
|
|
22
|
-
return new NodeTesteranto(input, testSpecification, testImplementation, testResourceRequirement, testInterface);
|
|
23
|
-
};
|