testeranto 0.134.0 → 0.140.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/.aider.chat.history.md +14577 -0
- package/.aider.input.history +566 -0
- package/.aider.tags.cache.v3/{8d/fa/12860238755bcfab9af8a93c52ab.val → bd/91/b71f967fd074cf4b757081b429b7.val} +0 -0
- package/.aider.tags.cache.v3/cache.db +0 -0
- package/.aider.tags.cache.v3/{18/8b/7dfca822129dad10b5cacadf7728.val → fb/96/b0f91c7e75e08fc5a6907633cf99.val} +0 -0
- package/README.md +29 -423
- package/bundle.js +1 -1
- package/dist/common/src/CoreTypes.js +2 -0
- package/dist/common/src/Init.js +4 -1
- package/dist/common/src/Node.js +1 -1
- package/dist/common/src/PM/PM_WithEslintAndTsc.js +10 -8
- package/dist/common/src/PM/__tests__/nodeSidecar.testeranto.js +2 -2
- package/dist/common/src/PM/main.js +12 -7
- package/dist/common/src/PM/node.js +10 -3
- package/dist/common/src/Web.js +2 -2
- package/dist/common/src/build.js +7 -72
- package/dist/common/src/defaultConfig.js +0 -1
- package/dist/common/src/esbuildConfigs/eslint-formatter-testeranto.js +16 -1
- package/dist/common/src/esbuildConfigs/node.js +2 -16
- package/dist/common/src/esbuildConfigs/pure.js +2 -16
- package/dist/common/src/esbuildConfigs/rebuildPlugin.js +22 -0
- package/dist/common/src/esbuildConfigs/web.js +2 -16
- package/dist/common/src/lib/abstractBase.js +8 -1
- package/dist/common/src/lib/basebuilder.js +4 -0
- package/dist/common/src/lib/classBuilder.js +2 -3
- package/dist/common/src/lib/core.js +2 -0
- package/dist/common/src/run.js +1 -1
- package/dist/common/src/utils/buildTemplates.js +88 -0
- package/dist/common/tsconfig.common.tsbuildinfo +1 -1
- package/dist/module/src/Init.js +4 -1
- package/dist/module/src/Node.js +1 -1
- package/dist/module/src/PM/PM_WithEslintAndTsc.js +10 -8
- package/dist/module/src/PM/__tests__/nodeSidecar.testeranto.js +2 -2
- package/dist/module/src/PM/main.js +12 -7
- package/dist/module/src/PM/node.js +10 -3
- package/dist/module/src/Project.js +41 -47
- package/dist/module/src/TestReport.js +34 -31
- package/dist/module/src/Web.js +2 -2
- package/dist/module/src/build.js +7 -72
- package/dist/module/src/defaultConfig.js +0 -1
- package/dist/module/src/esbuildConfigs/eslint-formatter-testeranto.js +16 -1
- package/dist/module/src/esbuildConfigs/node.js +2 -16
- package/dist/module/src/esbuildConfigs/pure.js +2 -16
- package/dist/module/src/esbuildConfigs/rebuildPlugin.js +17 -0
- package/dist/module/src/esbuildConfigs/web.js +2 -16
- package/dist/module/src/lib/abstractBase.js +8 -1
- package/dist/module/src/lib/basebuilder.js +4 -0
- package/dist/module/src/lib/classBuilder.js +2 -3
- package/dist/module/src/lib/core.js +2 -0
- package/dist/module/src/run.js +1 -1
- package/dist/module/src/utils/buildTemplates.js +82 -0
- package/dist/module/tsconfig.module.tsbuildinfo +1 -1
- package/dist/prebuild/Project.js +77 -29
- package/dist/prebuild/TestReport.js +51 -32
- package/dist/prebuild/build.mjs +132 -131
- package/dist/prebuild/esbuildConfigs/eslint-formatter-testeranto.mjs +14 -1
- package/dist/prebuild/init-docs.mjs +0 -4
- package/dist/prebuild/run.mjs +50 -31
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/types/src/CoreTypes.d.ts +53 -0
- package/dist/types/src/Node.d.ts +3 -3
- package/dist/types/src/PM/__tests__/nodeSidecar.testeranto.d.ts +2 -4
- package/dist/types/src/PM/__tests__/pureSidecar.testeranto.d.ts +2 -4
- package/dist/types/src/PM/__tests__/webSidecar.testeranto.d.ts +2 -4
- package/dist/types/src/PM/index.d.ts +1 -1
- package/dist/types/src/PM/nodeSidecar.d.ts +2 -2
- package/dist/types/src/Pure.d.ts +3 -3
- package/dist/types/src/Types.d.ts +21 -61
- package/dist/types/src/Web.d.ts +3 -3
- package/dist/types/src/esbuildConfigs/rebuildPlugin.d.ts +6 -0
- package/dist/types/src/lib/abstractBase.d.ts +10 -16
- package/dist/types/src/lib/basebuilder.d.ts +3 -3
- package/dist/types/src/lib/classBuilder.d.ts +2 -2
- package/dist/types/src/lib/core.d.ts +2 -2
- package/dist/types/src/lib/index.d.ts +7 -6
- package/dist/types/src/lib/types.d.ts +8 -8
- package/dist/types/src/mothership/test.d.ts +2 -2
- package/dist/types/src/utils/buildTemplates.d.ts +3 -0
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/docs/index.md +567 -0
- package/docs/style.md +116 -0
- package/docs.html +537 -0
- package/example.css +351 -0
- package/fonts/M_PLUS_Rounded_1c/MPLUSRounded1c-Black.ttf +0 -0
- package/fonts/M_PLUS_Rounded_1c/MPLUSRounded1c-Bold.ttf +0 -0
- package/fonts/M_PLUS_Rounded_1c/MPLUSRounded1c-ExtraBold.ttf +0 -0
- package/fonts/M_PLUS_Rounded_1c/MPLUSRounded1c-Light.ttf +0 -0
- package/fonts/M_PLUS_Rounded_1c/MPLUSRounded1c-Medium.ttf +0 -0
- package/fonts/M_PLUS_Rounded_1c/MPLUSRounded1c-Regular.ttf +0 -0
- package/fonts/M_PLUS_Rounded_1c/MPLUSRounded1c-Thin.ttf +0 -0
- package/fonts/M_PLUS_Rounded_1c/OFL.txt +91 -0
- package/index.html +245 -24
- package/logo.svg +72 -0
- package/package.json +11 -2
- package/scripts/compile-docs.js +89 -0
- package/src/CoreTypes.ts +152 -0
- package/src/Init.ts +4 -4
- package/src/Node.ts +13 -13
- package/src/PM/PM_WithEslintAndTsc.ts +46 -15
- package/src/PM/__tests__/nodeSidecar.testeranto.ts +13 -20
- package/src/PM/__tests__/pureSidecar.testeranto.ts +8 -15
- package/src/PM/__tests__/webSidecar.testeranto.ts +8 -15
- package/src/PM/index.ts +1 -1
- package/src/PM/main.ts +17 -16
- package/src/PM/node.ts +10 -10
- package/src/PM/nodeSidecar.ts +2 -2
- package/src/PM/pure.ts +0 -4
- package/src/Project.tsx +289 -292
- package/src/Pure.ts +13 -14
- package/src/PureSidecar.ts +1 -0
- package/src/TestReport.tsx +179 -165
- package/src/Types.ts +52 -151
- package/src/Web.ts +15 -14
- package/src/build.ts +22 -72
- package/src/defaultConfig.ts +2 -1
- package/src/esbuildConfigs/eslint-formatter-testeranto.ts +17 -1
- package/src/esbuildConfigs/node.ts +2 -18
- package/src/esbuildConfigs/pure.ts +2 -18
- package/src/esbuildConfigs/rebuildPlugin.ts +23 -0
- package/src/esbuildConfigs/web.ts +2 -18
- package/src/lib/BaseSuite.test.ts +457 -0
- package/src/lib/BaseSuite.ts +155 -0
- package/src/lib/abstractBase.ts +13 -163
- package/src/lib/basebuilder.ts +11 -11
- package/src/lib/classBuilder.ts +13 -7
- package/src/lib/core.ts +13 -17
- package/src/lib/index.ts +21 -24
- package/src/lib/types.ts +23 -9
- package/src/mothership/test.ts +13 -10
- package/src/run.ts +1 -1
- package/src/style.css +1 -1
- package/src/utils/buildTemplates.ts +88 -0
- package/style.css +496 -0
- package/testeranto/bundles/node/{mothership/chunk-V2EQEXU2.mjs → allTests/chunk-4PJCC2XT.mjs} +66 -59
- package/testeranto/bundles/node/allTests/metafile.json +4151 -0
- package/testeranto/bundles/node/allTests/src/PM/__tests__/nodeSidecar.testeranto.mjs +187 -0
- package/testeranto/bundles/node/{mothership → allTests}/src/PM/__tests__/pureSidecar.testeranto.mjs +1 -1
- package/testeranto/bundles/node/{mothership → allTests}/src/PM/__tests__/webSidecar.testeranto.mjs +1 -1
- package/testeranto/bundles/node/allTests/src/lib/BaseSuite.test.mjs +305 -0
- package/testeranto/bundles/node/{mothership → allTests}/src/mothership/test.mjs +1 -1
- package/testeranto/dev.html +29 -0
- package/testeranto/index.html +28 -27
- package/testeranto/reports/allTests/config.json +57 -0
- package/testeranto/reports/{mothership/index.html → allTests/dev.html} +2 -0
- package/testeranto/reports/allTests/index.html +26 -0
- package/testeranto/reports/{mothership/src/PM/__tests__/sidecar.testeranto/node/index.html → allTests/src/PM/__tests__/nodeSidecar.testeranto/node/dev.html} +4 -3
- package/testeranto/reports/allTests/src/PM/__tests__/nodeSidecar.testeranto/node/index.html +21 -0
- package/testeranto/reports/allTests/src/PM/__tests__/nodeSidecar.testeranto/node/lint_errors.json +80 -0
- package/testeranto/reports/allTests/src/PM/__tests__/nodeSidecar.testeranto/node/message +1 -0
- package/testeranto/reports/allTests/src/PM/__tests__/nodeSidecar.testeranto/node/prompt.txt +8 -0
- package/testeranto/reports/allTests/src/PM/__tests__/nodeSidecar.testeranto/node/type_errors.txt +28 -0
- package/testeranto/reports/{mothership/src/PM/__tests__/webSidecar.testeranto/node/index.html → allTests/src/PM/__tests__/pureSidecar.testeranto/node/dev.html} +4 -3
- package/testeranto/reports/allTests/src/PM/__tests__/pureSidecar.testeranto/node/index.html +21 -0
- package/testeranto/reports/{mothership → allTests}/src/PM/__tests__/pureSidecar.testeranto/node/lint_errors.json +12 -12
- package/testeranto/reports/allTests/src/PM/__tests__/pureSidecar.testeranto/node/message +1 -0
- package/testeranto/reports/allTests/src/PM/__tests__/pureSidecar.testeranto/node/prompt.txt +8 -0
- package/testeranto/reports/allTests/src/PM/__tests__/pureSidecar.testeranto/node/type_errors.txt +32 -0
- package/testeranto/reports/{mothership/src/PM/__tests__/nodeSidecar.testeranto/node/index.html → allTests/src/PM/__tests__/webSidecar.testeranto/node/dev.html} +4 -3
- package/testeranto/reports/allTests/src/PM/__tests__/webSidecar.testeranto/node/index.html +21 -0
- package/testeranto/reports/{mothership → allTests}/src/PM/__tests__/webSidecar.testeranto/node/lint_errors.json +12 -12
- package/testeranto/reports/allTests/src/PM/__tests__/webSidecar.testeranto/node/message +1 -0
- package/testeranto/reports/allTests/src/PM/__tests__/webSidecar.testeranto/node/prompt.txt +8 -0
- package/testeranto/reports/allTests/src/PM/__tests__/webSidecar.testeranto/node/type_errors.txt +32 -0
- package/testeranto/reports/allTests/src/lib/BaseSuite.test/node/console_log.txt +35 -0
- package/testeranto/reports/{mothership/src/PM/__tests__/pureSidecar.testeranto/node/index.html → allTests/src/lib/BaseSuite.test/node/dev.html} +4 -3
- package/testeranto/reports/allTests/src/lib/BaseSuite.test/node/index.html +21 -0
- package/testeranto/reports/allTests/src/lib/BaseSuite.test/node/lint_errors.json +608 -0
- package/testeranto/reports/allTests/src/lib/BaseSuite.test/node/message +1 -0
- package/testeranto/reports/allTests/src/lib/BaseSuite.test/node/prompt.txt +7 -0
- package/testeranto/reports/allTests/src/lib/BaseSuite.test/node/type_errors.txt +68 -0
- package/testeranto/reports/allTests/src/mothership/test/node/dev.html +21 -0
- package/testeranto/reports/allTests/src/mothership/test/node/index.html +21 -0
- package/testeranto/reports/allTests/src/mothership/test/node/message +1 -0
- package/testeranto/reports/allTests/src/mothership/test/node/prompt.txt +8 -0
- package/testeranto/reports/allTests/src/mothership/test/node/type_errors.txt +24 -0
- package/testeranto/reports/allTests/summary.json +37 -0
- package/testeranto.config.ts +16 -26
- package/tsc.log +66 -69
- package/.aider.tags.cache.v3/cache.db-shm +0 -0
- package/.aider.tags.cache.v3/cache.db-wal +0 -0
- package/dist/common/src/SP__Polygon.test.js +0 -10
- package/dist/module/src/ReportClient.js +0 -132
- package/dist/module/src/SP__Polygon.test.js +0 -8
- package/dist/prebuild/ReportClient.js +0 -3
- package/src/ReportClient.tsx +0 -164
- package/src/SP__Polygon.test.ts +0 -13
- package/testeranto/ReportClient.css +0 -11367
- package/testeranto/ReportClient.js +0 -24641
- package/testeranto/bundles/node/mothership/metafile.json +0 -389
- package/testeranto/bundles/node/mothership/src/PM/__tests__/nodeSidecar.testeranto.mjs +0 -1219
- package/testeranto/bundles/node/mothership/src/PM/__tests__/sidecar.testeranto.mjs +0 -1199
- package/testeranto/reports/mothership/config.json +0 -25
- package/testeranto/reports/mothership/src/PM/__tests__/nodeSidecar.testeranto/node/console_log.txt +0 -0
- package/testeranto/reports/mothership/src/PM/__tests__/nodeSidecar.testeranto/node/lint_errors.json +0 -1564
- package/testeranto/reports/mothership/src/PM/__tests__/nodeSidecar.testeranto/node/prompt.txt +0 -22
- package/testeranto/reports/mothership/src/PM/__tests__/nodeSidecar.testeranto/node/type_errors.txt +0 -35
- package/testeranto/reports/mothership/src/PM/__tests__/pureSidecar.testeranto/node/prompt.txt +0 -12
- package/testeranto/reports/mothership/src/PM/__tests__/pureSidecar.testeranto/node/type_errors.txt +0 -26
- package/testeranto/reports/mothership/src/PM/__tests__/sidecar.testeranto/node/bdd_errors.txt +0 -1
- package/testeranto/reports/mothership/src/PM/__tests__/sidecar.testeranto/node/console_log.txt +0 -0
- package/testeranto/reports/mothership/src/PM/__tests__/sidecar.testeranto/node/lint_errors.json +0 -1564
- package/testeranto/reports/mothership/src/PM/__tests__/sidecar.testeranto/node/log.txt +0 -0
- package/testeranto/reports/mothership/src/PM/__tests__/sidecar.testeranto/node/prompt.txt +0 -22
- package/testeranto/reports/mothership/src/PM/__tests__/sidecar.testeranto/node/tests.json +0 -56
- package/testeranto/reports/mothership/src/PM/__tests__/sidecar.testeranto/node/type_errors.txt +0 -29
- package/testeranto/reports/mothership/src/PM/__tests__/webSidecar.testeranto/node/prompt.txt +0 -12
- package/testeranto/reports/mothership/src/PM/__tests__/webSidecar.testeranto/node/type_errors.txt +0 -26
- package/testeranto/reports/mothership/src/mothership/test/node/bdd_errors.txt +0 -1
- package/testeranto/reports/mothership/src/mothership/test/node/console_log.txt +0 -4
- package/testeranto/reports/mothership/src/mothership/test/node/index.html +0 -20
- package/testeranto/reports/mothership/src/mothership/test/node/log.txt +0 -0
- package/testeranto/reports/mothership/src/mothership/test/node/prompt.txt +0 -12
- package/testeranto/reports/mothership/src/mothership/test/node/tests.json +0 -24
- package/testeranto/reports/mothership/src/mothership/test/node/type_errors.txt +0 -18
- package/testeranto/reports/mothership/summary.json +0 -9
- /package/dist/{types/src/SP__Polygon.test.d.ts → module/src/CoreTypes.js} +0 -0
- /package/testeranto/bundles/node/{mothership → allTests}/chunk-PG6KUKNP.mjs +0 -0
- /package/testeranto/bundles/pure/{mothership → allTests}/metafile.json +0 -0
- /package/testeranto/bundles/web/{mothership → allTests}/metafile.json +0 -0
- /package/testeranto/reports/{mothership/src/PM/__tests__/nodeSidecar.testeranto → allTests/src/lib/BaseSuite.test}/node/log.txt +0 -0
- /package/testeranto/reports/{mothership → allTests}/src/mothership/test/node/lint_errors.json +0 -0
package/src/Project.tsx
CHANGED
|
@@ -1,67 +1,45 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
2
|
import ReactDom from "react-dom/client";
|
|
3
|
-
import React, {
|
|
3
|
+
import React, { useEffect, useState } from "react";
|
|
4
4
|
import { Col, Nav, Row, Tab, Table } from "react-bootstrap";
|
|
5
5
|
|
|
6
6
|
import { Footer } from "./Footer";
|
|
7
|
-
import {
|
|
7
|
+
import { IBuiltConfig } from "./lib";
|
|
8
8
|
|
|
9
|
-
import
|
|
10
|
-
import "./style.css"
|
|
9
|
+
import "bootstrap/dist/css/bootstrap.min.css";
|
|
10
|
+
import "./style.css";
|
|
11
11
|
import { ISummary } from "./Types";
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
// type ICollation = {
|
|
15
|
-
// name: string;
|
|
16
|
-
// runTime: IRunTime;
|
|
17
|
-
// tr: {
|
|
18
|
-
// ports: number;
|
|
19
|
-
// };
|
|
20
|
-
// sidecars: ITestTypes[];
|
|
21
|
-
// staticAnalysis: number | "?";
|
|
22
|
-
// typeErrors: number | "?";
|
|
23
|
-
// bddErrors: number | "?";
|
|
24
|
-
// prompt: string | "?";
|
|
25
|
-
// };
|
|
26
|
-
|
|
27
|
-
// type ICollations = ICollation[];
|
|
28
|
-
|
|
29
13
|
const ExternalFeatures = ({ summary }: { summary: ISummaries }) => {
|
|
30
|
-
return
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
<Tab.Container id="secondary-tab-container" defaultActiveKey="first">
|
|
60
|
-
<Row>
|
|
61
|
-
<Col sm={3}>
|
|
62
|
-
<Nav variant="pills" className="flex-column">
|
|
63
|
-
|
|
64
|
-
{/* {
|
|
14
|
+
return (
|
|
15
|
+
<div>
|
|
16
|
+
<Row>
|
|
17
|
+
<Tab.Container id="external-features-tab-container">
|
|
18
|
+
<Row>
|
|
19
|
+
<Col sm={1}>
|
|
20
|
+
<Nav variant="pills" className="flex-column">
|
|
21
|
+
<Nav.Item>
|
|
22
|
+
<Nav.Link eventKey={"log"}>log</Nav.Link>
|
|
23
|
+
<Nav.Link eventKey={"steps"}>steps</Nav.Link>
|
|
24
|
+
</Nav.Item>
|
|
25
|
+
</Nav>
|
|
26
|
+
</Col>
|
|
27
|
+
|
|
28
|
+
<Col sm={11}>
|
|
29
|
+
<Tab.Content>
|
|
30
|
+
<Tab.Pane eventKey={"log"}>
|
|
31
|
+
{/* <pre><code>{log}</code></pre> */}
|
|
32
|
+
</Tab.Pane>
|
|
33
|
+
|
|
34
|
+
<Tab.Pane eventKey={"steps"}>
|
|
35
|
+
<Tab.Container
|
|
36
|
+
id="secondary-tab-container"
|
|
37
|
+
defaultActiveKey="first"
|
|
38
|
+
>
|
|
39
|
+
<Row>
|
|
40
|
+
<Col sm={3}>
|
|
41
|
+
<Nav variant="pills" className="flex-column">
|
|
42
|
+
{/* {
|
|
65
43
|
...bddErrors.givens.map((g) =>
|
|
66
44
|
<Nav.Item>
|
|
67
45
|
<Nav.Link eventKey={g.key}>
|
|
@@ -70,31 +48,26 @@ const ExternalFeatures = ({ summary }: { summary: ISummaries }) => {
|
|
|
70
48
|
</Nav.Item>
|
|
71
49
|
)
|
|
72
50
|
} */}
|
|
73
|
-
|
|
74
|
-
</
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
{/* {
|
|
51
|
+
</Nav>
|
|
52
|
+
</Col>
|
|
53
|
+
<Col sm={9}>
|
|
54
|
+
<Tab.Content>
|
|
55
|
+
{/* {
|
|
79
56
|
...bddErrors.givens.map((g) =>
|
|
80
57
|
|
|
81
58
|
<Tab.Pane eventKey={g.key}><TestPane given={g} /></Tab.Pane>
|
|
82
59
|
|
|
83
60
|
)
|
|
84
61
|
} */}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
</Tab.
|
|
90
|
-
</Tab.
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
</Col>
|
|
96
|
-
|
|
97
|
-
{/* <Col sm={3}>
|
|
62
|
+
</Tab.Content>
|
|
63
|
+
</Col>
|
|
64
|
+
</Row>
|
|
65
|
+
</Tab.Container>
|
|
66
|
+
</Tab.Pane>
|
|
67
|
+
</Tab.Content>
|
|
68
|
+
</Col>
|
|
69
|
+
|
|
70
|
+
{/* <Col sm={3}>
|
|
98
71
|
|
|
99
72
|
|
|
100
73
|
|
|
@@ -126,150 +99,152 @@ const ExternalFeatures = ({ summary }: { summary: ISummaries }) => {
|
|
|
126
99
|
}
|
|
127
100
|
</Tab.Content>
|
|
128
101
|
</Col> */}
|
|
129
|
-
|
|
130
|
-
</
|
|
131
|
-
</
|
|
132
|
-
</
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
}
|
|
102
|
+
</Row>
|
|
103
|
+
</Tab.Container>
|
|
104
|
+
</Row>
|
|
105
|
+
</div>
|
|
106
|
+
);
|
|
107
|
+
};
|
|
136
108
|
|
|
137
109
|
const Features = ({ summary }: { summary: ISummaries }) => {
|
|
138
|
-
return
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
110
|
+
return (
|
|
111
|
+
<div>
|
|
112
|
+
<Table striped bordered hover>
|
|
113
|
+
<thead>
|
|
114
|
+
<tr>
|
|
115
|
+
<th>project</th>
|
|
116
|
+
<th>platform</th>
|
|
117
|
+
<th>BDD errors</th>
|
|
118
|
+
<th>Lint errors</th>
|
|
119
|
+
<th>Type errors</th>
|
|
120
|
+
<th>prompt</th>
|
|
121
|
+
</tr>
|
|
122
|
+
</thead>
|
|
123
|
+
|
|
124
|
+
<tbody>
|
|
125
|
+
{...summary.map((s) => {
|
|
126
|
+
return (
|
|
127
|
+
<>
|
|
128
|
+
<tr>
|
|
129
|
+
<th>{s[0]}</th>
|
|
130
|
+
</tr>
|
|
131
|
+
{...s[1].tests.map((t) => {
|
|
132
|
+
const x = `${s[0]}/${t[0]
|
|
133
|
+
.split(".")
|
|
134
|
+
.slice(0, -1)
|
|
135
|
+
.join(".")}/${t[1]}`;
|
|
164
136
|
const y = s[2][t[0]];
|
|
165
137
|
|
|
166
|
-
return
|
|
167
|
-
<
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
138
|
+
return (
|
|
139
|
+
<tr>
|
|
140
|
+
<td>{t[0]}</td>
|
|
141
|
+
<td>{t[1]}</td>
|
|
142
|
+
<td>
|
|
143
|
+
<a href={`./asdasasdasdd/reports/${x}/index.html`}>
|
|
144
|
+
{y.runTimeError}
|
|
145
|
+
</a>
|
|
146
|
+
</td>
|
|
147
|
+
<td>
|
|
148
|
+
<a
|
|
149
|
+
href={`./testeasdqqweqweranto/reports/${x}/lint_errors.json`}
|
|
150
|
+
>
|
|
151
|
+
{y.staticErrors}
|
|
152
|
+
</a>
|
|
153
|
+
</td>
|
|
154
|
+
<td>
|
|
155
|
+
<a
|
|
156
|
+
href={`./testezxcdcdfranto/reports/${x}/type_errors.txt`}
|
|
157
|
+
>
|
|
158
|
+
{y.typeErrors}
|
|
159
|
+
</a>
|
|
160
|
+
</td>
|
|
161
|
+
<td>
|
|
162
|
+
<pre>
|
|
163
|
+
{s[2][t[0]].prompt}
|
|
164
|
+
{/* <button onClick={() => {
|
|
177
165
|
copyToClipboard(s[2][t[0]].prompt)
|
|
178
166
|
}}>prompt</button> */}
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
</Table>
|
|
194
|
-
|
|
195
|
-
</div>
|
|
196
|
-
}
|
|
167
|
+
</pre>
|
|
168
|
+
</td>
|
|
169
|
+
</tr>
|
|
170
|
+
);
|
|
171
|
+
})}
|
|
172
|
+
</>
|
|
173
|
+
);
|
|
174
|
+
})}
|
|
175
|
+
</tbody>
|
|
176
|
+
</Table>
|
|
177
|
+
</div>
|
|
178
|
+
);
|
|
179
|
+
};
|
|
197
180
|
|
|
198
181
|
const Docs = ({ summary }: { summary: ISummaries }) => {
|
|
199
|
-
return
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
</
|
|
210
|
-
</
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
<Tab.Pane eventKey={`external`}>
|
|
219
|
-
<ExternalFeatures summary={summary} />
|
|
220
|
-
</Tab.Pane>
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
<Tab.Pane eventKey={`markdown`}>
|
|
224
|
-
<ExternalFeatures summary={summary} />
|
|
225
|
-
</Tab.Pane>
|
|
226
|
-
|
|
227
|
-
<Tab.Pane eventKey={`string`}>
|
|
228
|
-
<ExternalFeatures summary={summary} />
|
|
229
|
-
</Tab.Pane>
|
|
182
|
+
return (
|
|
183
|
+
<div>
|
|
184
|
+
<Tab.Container id="DocsPane-tabs" defaultActiveKey="external">
|
|
185
|
+
<Row>
|
|
186
|
+
<Col sm={12}>
|
|
187
|
+
<Nav>
|
|
188
|
+
<Nav.Link eventKey={`external`}>external</Nav.Link>
|
|
189
|
+
<Nav.Link eventKey={`markdown`}>markdown</Nav.Link>
|
|
190
|
+
<Nav.Link eventKey={`string`}>string</Nav.Link>
|
|
191
|
+
</Nav>
|
|
192
|
+
</Col>
|
|
193
|
+
</Row>
|
|
194
|
+
<Row>
|
|
195
|
+
<Col sm={12}>
|
|
196
|
+
<Tab.Content>
|
|
197
|
+
<Tab.Pane eventKey={`external`}>
|
|
198
|
+
<ExternalFeatures summary={summary} />
|
|
199
|
+
</Tab.Pane>
|
|
230
200
|
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
</Tab.Container>
|
|
201
|
+
<Tab.Pane eventKey={`markdown`}>
|
|
202
|
+
<ExternalFeatures summary={summary} />
|
|
203
|
+
</Tab.Pane>
|
|
235
204
|
|
|
236
|
-
|
|
237
|
-
}
|
|
205
|
+
<Tab.Pane eventKey={`string`}>
|
|
206
|
+
<ExternalFeatures summary={summary} />
|
|
207
|
+
</Tab.Pane>
|
|
208
|
+
</Tab.Content>
|
|
209
|
+
</Col>
|
|
210
|
+
</Row>
|
|
211
|
+
</Tab.Container>
|
|
212
|
+
</div>
|
|
213
|
+
);
|
|
214
|
+
};
|
|
238
215
|
|
|
239
|
-
type ISummaries = [
|
|
240
|
-
string,
|
|
241
|
-
IBuiltConfig,
|
|
242
|
-
ISummary
|
|
243
|
-
][];
|
|
216
|
+
type ISummaries = [string, IBuiltConfig, ISummary][];
|
|
244
217
|
|
|
245
218
|
const BigBoard = () => {
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
if (!bigConfigElement) throw new Error('bigConfig element not found');
|
|
219
|
+
const bigConfigElement = document.getElementById("bigConfig");
|
|
220
|
+
if (!bigConfigElement) throw new Error("bigConfig element not found");
|
|
249
221
|
const projects = JSON.parse(bigConfigElement.innerHTML) as string[];
|
|
250
222
|
|
|
251
223
|
const [summary, setSummary] = useState<ISummaries>();
|
|
252
224
|
useEffect(() => {
|
|
253
225
|
(async () => {
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
226
|
+
const x: Promise<[string, IBuiltConfig, ISummary]>[] = projects.map(
|
|
227
|
+
async (p) => {
|
|
228
|
+
return [
|
|
229
|
+
p,
|
|
230
|
+
(await (
|
|
231
|
+
await fetch(`./testeranto/reports/${p}/config.json`)
|
|
232
|
+
).json()) as IBuiltConfig,
|
|
233
|
+
(await (
|
|
234
|
+
await fetch(`./testeranto/reports/${p}/summary.json`)
|
|
235
|
+
).json()) as ISummary,
|
|
236
|
+
] as [string, IBuiltConfig, ISummary];
|
|
237
|
+
}
|
|
238
|
+
);
|
|
262
239
|
|
|
263
240
|
Promise.all(x).then((v) => {
|
|
264
|
-
setSummary(v)
|
|
265
|
-
})
|
|
266
|
-
|
|
241
|
+
setSummary(v);
|
|
242
|
+
});
|
|
267
243
|
})();
|
|
268
244
|
}, []);
|
|
269
245
|
|
|
270
|
-
|
|
271
246
|
if (!summary || summary?.length === 0) {
|
|
272
|
-
return <div>loading...</div
|
|
247
|
+
return <div>loading...</div>;
|
|
273
248
|
}
|
|
274
249
|
|
|
275
250
|
// console.log("summary", summary)
|
|
@@ -288,111 +263,134 @@ const BigBoard = () => {
|
|
|
288
263
|
// // });
|
|
289
264
|
|
|
290
265
|
function copyToClipboard(text) {
|
|
291
|
-
navigator.clipboard
|
|
266
|
+
navigator.clipboard
|
|
267
|
+
.writeText(text)
|
|
292
268
|
.then(() => {
|
|
293
|
-
console.log(
|
|
269
|
+
console.log("Text copied to clipboard");
|
|
294
270
|
})
|
|
295
|
-
.catch(err => {
|
|
296
|
-
console.error(
|
|
271
|
+
.catch((err) => {
|
|
272
|
+
console.error("Error copying text: ", err);
|
|
297
273
|
});
|
|
298
274
|
}
|
|
299
275
|
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
<
|
|
304
|
-
<
|
|
305
|
-
<
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
<tr>
|
|
337
|
-
<th>{s[0]}</th>
|
|
338
|
-
</tr>
|
|
339
|
-
{
|
|
340
|
-
...s[1].tests.map((t) => {
|
|
341
|
-
|
|
342
|
-
const x = `${s[0]}/${t[0].split(".").slice(0, -1).join(".")}/${t[1]}`
|
|
343
|
-
const y = s[2][t[0]];
|
|
344
|
-
|
|
345
|
-
return <tr>
|
|
346
|
-
<td>{t[0]}</td>
|
|
347
|
-
<td>{t[1]}</td>
|
|
348
|
-
<td><a href={`./reports/${x}/index.html`}>{y.runTimeError}</a></td>
|
|
349
|
-
<td><a href={`./reports/${x}/lint_errors.json`}>{y.staticErrors}</a></td>
|
|
350
|
-
<td><a href={`./reports/${x}/type_errors.txt`}>{y.typeErrors}</a></td>
|
|
351
|
-
<td>
|
|
352
|
-
<pre>
|
|
353
|
-
|
|
354
|
-
{/* {s[2][t[0]].prompt} */}
|
|
355
|
-
<button onClick={() => {
|
|
356
|
-
copyToClipboard(s[2][t[0]].prompt)
|
|
357
|
-
}}>copy</button>
|
|
358
|
-
</pre>
|
|
359
|
-
</td>
|
|
360
|
-
<td>
|
|
361
|
-
{/* <a href={`./reports/${x}/type_errors.txt`}>{y.typeErrors}</a> */}
|
|
362
|
-
<pre><code>{JSON.stringify(y.failingFeatures, null, 2)}</code></pre>
|
|
363
|
-
</td>
|
|
364
|
-
|
|
276
|
+
return (
|
|
277
|
+
<div>
|
|
278
|
+
{" "}
|
|
279
|
+
<Tab.Container id="TestPane-tabs" defaultActiveKey="tests">
|
|
280
|
+
<Row>
|
|
281
|
+
<Col sm={12}>
|
|
282
|
+
<Nav>
|
|
283
|
+
<Nav.Link eventKey={`tests`}>tests</Nav.Link>
|
|
284
|
+
<Nav.Link eventKey={`features`}>features</Nav.Link>
|
|
285
|
+
<Nav.Link eventKey={`docs`}>docs</Nav.Link>
|
|
286
|
+
</Nav>
|
|
287
|
+
</Col>
|
|
288
|
+
</Row>
|
|
289
|
+
<Row>
|
|
290
|
+
<Col sm={12}>
|
|
291
|
+
<Tab.Content>
|
|
292
|
+
<Tab.Pane eventKey={`tests`}>
|
|
293
|
+
<Table striped bordered hover>
|
|
294
|
+
<thead>
|
|
295
|
+
<tr>
|
|
296
|
+
<th>project</th>
|
|
297
|
+
<th>platform</th>
|
|
298
|
+
<th>BDD errors</th>
|
|
299
|
+
<th>Lint errors</th>
|
|
300
|
+
<th>Type errors</th>
|
|
301
|
+
<th>prompt</th>
|
|
302
|
+
<th>failing features</th>
|
|
303
|
+
</tr>
|
|
304
|
+
</thead>
|
|
305
|
+
|
|
306
|
+
<tbody>
|
|
307
|
+
{...summary.map((s) => {
|
|
308
|
+
return (
|
|
309
|
+
<>
|
|
310
|
+
<tr>
|
|
311
|
+
<th>{s[0]}</th>
|
|
365
312
|
</tr>
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
313
|
+
{...s[1].tests.map((t) => {
|
|
314
|
+
const x = `${s[0]}/${t[0]
|
|
315
|
+
.split(".")
|
|
316
|
+
.slice(0, -1)
|
|
317
|
+
.join(".")}/${t[1]}`;
|
|
318
|
+
const y = s[2][t[0]];
|
|
319
|
+
|
|
320
|
+
return (
|
|
321
|
+
<tr>
|
|
322
|
+
<td>{t[0]}</td>
|
|
323
|
+
<td>{t[1]}</td>
|
|
324
|
+
<td>
|
|
325
|
+
<a
|
|
326
|
+
href={`./testeranto/reports/${x}/index.html`}
|
|
327
|
+
>
|
|
328
|
+
{y.runTimeError}
|
|
329
|
+
</a>
|
|
330
|
+
</td>
|
|
331
|
+
<td>
|
|
332
|
+
<a
|
|
333
|
+
href={`./testeranto/reports/${x}/lint_errors.json`}
|
|
334
|
+
>
|
|
335
|
+
{y.staticErrors}
|
|
336
|
+
</a>
|
|
337
|
+
</td>
|
|
338
|
+
<td>
|
|
339
|
+
<a
|
|
340
|
+
href={`./testeranto/reports/${x}/type_errors.txt`}
|
|
341
|
+
>
|
|
342
|
+
{y.typeErrors}
|
|
343
|
+
</a>
|
|
344
|
+
</td>
|
|
345
|
+
<td>
|
|
346
|
+
<pre>
|
|
347
|
+
{/* {s[2][t[0]].prompt} */}
|
|
348
|
+
<button
|
|
349
|
+
onClick={() => {
|
|
350
|
+
copyToClipboard(s[2][t[0]].prompt);
|
|
351
|
+
}}
|
|
352
|
+
>
|
|
353
|
+
copy
|
|
354
|
+
</button>
|
|
355
|
+
</pre>
|
|
356
|
+
</td>
|
|
357
|
+
<td>
|
|
358
|
+
{/* <a href={`./reports/${x}/type_errors.txt`}>{y.typeErrors}</a> */}
|
|
359
|
+
<pre>
|
|
360
|
+
<code>
|
|
361
|
+
{JSON.stringify(
|
|
362
|
+
y.failingFeatures,
|
|
363
|
+
null,
|
|
364
|
+
2
|
|
365
|
+
)}
|
|
366
|
+
</code>
|
|
367
|
+
</pre>
|
|
368
|
+
</td>
|
|
369
|
+
</tr>
|
|
370
|
+
);
|
|
371
|
+
})}
|
|
372
|
+
</>
|
|
373
|
+
);
|
|
374
|
+
})}
|
|
375
|
+
</tbody>
|
|
376
|
+
</Table>
|
|
377
|
+
</Tab.Pane>
|
|
391
378
|
|
|
392
|
-
|
|
393
|
-
|
|
379
|
+
<Tab.Pane eventKey={`features`}>
|
|
380
|
+
<Features summary={summary} />
|
|
381
|
+
</Tab.Pane>
|
|
394
382
|
|
|
395
|
-
}
|
|
383
|
+
<Tab.Pane eventKey={`docs`}>
|
|
384
|
+
<Docs summary={summary} />
|
|
385
|
+
</Tab.Pane>
|
|
386
|
+
</Tab.Content>
|
|
387
|
+
</Col>
|
|
388
|
+
</Row>
|
|
389
|
+
</Tab.Container>
|
|
390
|
+
<Footer />
|
|
391
|
+
</div>
|
|
392
|
+
);
|
|
393
|
+
};
|
|
396
394
|
|
|
397
395
|
document.addEventListener("DOMContentLoaded", function () {
|
|
398
396
|
const elem = document.getElementById("root");
|
|
@@ -400,4 +398,3 @@ document.addEventListener("DOMContentLoaded", function () {
|
|
|
400
398
|
ReactDom.createRoot(elem).render(React.createElement(BigBoard, {}));
|
|
401
399
|
}
|
|
402
400
|
});
|
|
403
|
-
|