testeranto 0.177.0 → 0.197.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/ALL_LICENSES.txt +11246 -0
- package/LICENSE +21 -0
- package/README.md +24 -4
- package/default-project.json +44 -0
- package/design-editor/DesignEditor.tsx +247 -0
- package/design-editor/index.ts +2 -0
- package/design-editor/server.ts +121 -0
- package/design-editor/types.ts +16 -0
- package/designs/default-project.json +210 -0
- package/dist/common/design-editor/DesignEditor.js +239 -0
- package/dist/common/design-editor/index.js +18 -0
- package/dist/common/design-editor/server.js +98 -0
- package/dist/common/design-editor/types.js +2 -0
- package/dist/common/src/App.js +53 -0
- package/dist/common/src/Node.js +4 -8
- package/dist/common/src/PM/PM_WithEslintAndTsc.js +10 -34
- package/dist/common/src/PM/base.js +1 -1
- package/dist/common/src/PM/main.js +581 -113
- package/dist/common/src/PM/node.js +4 -2
- package/dist/common/src/PM/nodeSidecar.js +1 -0
- package/dist/common/src/PM/pure.js +20 -57
- package/dist/common/src/PM/pureSidecar.js +1 -1
- package/dist/common/src/PM/types.js +1 -0
- package/dist/common/src/PM/web.js +7 -4
- package/dist/common/src/Pure.js +1 -1
- package/dist/common/src/Pure.test.js +49 -79
- package/dist/common/src/ReportServer.js +8 -2
- package/dist/common/src/build.js +31 -40
- package/dist/common/src/components/DesignEditorPage.js +169 -0
- package/dist/common/src/components/SunriseAnimation.js +291 -0
- package/dist/common/src/components/SunriseAnimation.test/interface.js +67 -0
- package/dist/common/src/components/SunriseAnimation.test/types.js +2 -0
- package/dist/common/src/components/TestStatusBadge.js +1 -21
- package/dist/common/src/components/pure/AppFrame.js +69 -0
- package/dist/common/src/components/pure/AppFrame.test/implementation.js +63 -0
- package/dist/common/src/components/pure/AppFrame.test/index.js +14 -0
- package/dist/common/src/components/pure/AppFrame.test/specification.js +25 -0
- package/dist/common/src/components/pure/AppFrame.test/types.js +3 -0
- package/dist/common/src/components/pure/FeaturesReporterView.js +23 -0
- package/dist/common/src/components/pure/FeaturesReporterView.test/implementation.js +84 -0
- package/dist/common/src/components/pure/FeaturesReporterView.test/index.js +14 -0
- package/dist/common/src/components/pure/FeaturesReporterView.test/specification.js +27 -0
- package/dist/common/src/components/pure/FeaturesReporterView.test/types.js +2 -0
- package/dist/common/src/components/pure/ModalContent.js +86 -0
- package/dist/common/src/components/pure/ModalContent.test/implementation.js +35 -0
- package/dist/common/src/components/pure/ModalContent.test/index.js +58 -0
- package/dist/common/src/components/pure/ModalContent.test/specification.js +19 -0
- package/dist/common/src/components/pure/ModalContent.test/types.js +4 -0
- package/dist/common/src/{NavBar.js → components/pure/NavBar.js} +9 -10
- package/dist/common/src/components/pure/ProcessManager.js +112 -0
- package/dist/common/src/components/pure/ProcessManagerView.js +237 -0
- package/dist/common/src/components/pure/ProjectPageView.js +53 -76
- package/dist/common/src/components/pure/ProjectPageView.test/implementation.js +167 -54
- package/dist/common/src/components/pure/ProjectPageView.test/index.js +5 -1
- package/dist/common/src/components/pure/ProjectPageView.test/specification.js +15 -2
- package/dist/common/src/components/pure/ProjectPageView.test/types.js +2 -0
- package/dist/common/src/components/pure/ProjectsPageView.js +72 -0
- package/dist/common/src/components/pure/SettingsButton.js +13 -0
- package/dist/common/src/components/pure/SingleProcessView.js +214 -0
- package/dist/common/src/components/pure/TestPageView.js +513 -0
- package/dist/common/src/components/pure/TestPageView.test/implementation.js +157 -0
- package/dist/common/src/components/pure/TestPageView.test/index.js +15 -0
- package/dist/common/src/components/pure/TestPageView.test/specification.js +26 -0
- package/dist/common/src/components/pure/TestPageView.test/types.js +4 -0
- package/dist/common/src/components/pure/ThemeCard.js +15 -0
- package/dist/common/src/components/stateful/FeaturesReporter.js +59 -0
- package/dist/common/src/components/stateful/FileTree.js +40 -0
- package/dist/common/src/components/stateful/ProcessManagerPage.js +112 -0
- package/dist/common/src/components/stateful/ProjectPage.js +101 -0
- package/dist/common/src/components/stateful/ProjectsPage.js +118 -0
- package/dist/common/src/components/stateful/SettingsPage.js +72 -0
- package/dist/common/src/components/stateful/SingleProcessPage.js +147 -0
- package/dist/common/src/components/stateful/TestPage.js +229 -0
- package/dist/common/src/components/stateful/TextEditorPage.js +154 -0
- package/dist/common/src/defaultConfig.js +1 -0
- package/dist/common/src/esbuildConfigs/inputFilesPlugin.js +3 -4
- package/dist/common/src/esbuildConfigs/web.js +1 -1
- package/dist/common/src/lib/BaseSuite.js +7 -3
- package/dist/common/src/lib/BaseSuite.test/mock.js +17 -41
- package/dist/common/src/lib/BaseSuite.test/test.js +33 -42
- package/dist/common/src/lib/Sidecar.js +1 -0
- package/dist/common/src/lib/abstractBase.js +40 -13
- package/dist/common/src/lib/baseBuilder.test/baseBuilder.test.adapter.js +12 -12
- package/dist/common/src/lib/baseBuilder.test/baseBuilder.test.implementation.js +15 -13
- package/dist/common/src/lib/baseBuilder.test/baseBuilder.test.mock.js +28 -17
- package/dist/common/src/lib/baseBuilder.test/baseBuilder.test.pure.js +2 -2
- package/dist/common/src/lib/basebuilder.js +29 -35
- package/dist/common/src/lib/classBuilder.js +5 -3
- package/dist/common/src/lib/core.js +3 -6
- package/dist/common/src/lib/core.test/MockCore.js +0 -14
- package/dist/common/src/lib/core.test/core.test.adapter.js +2 -9
- package/dist/common/src/lib/core.test/core.test.implementation.js +3 -7
- package/dist/common/src/lib/index.js +13 -14
- package/dist/common/src/lib/pmProxy.js +37 -16
- package/dist/common/src/lib/pmProxy.test/adapter.js +20 -4
- package/dist/common/src/lib/pmProxy.test/implementation.js +93 -34
- package/dist/common/src/lib/pmProxy.test/mockPMBase.js +9 -0
- package/dist/common/src/lib/pmProxy.test/specification.js +3 -0
- package/dist/common/src/mothership/index.js +5 -0
- package/dist/common/src/mothership/test.js +44 -25
- package/dist/common/src/types/features.js +34 -0
- package/dist/common/src/utils/api.js +57 -27
- package/dist/common/src/utils/featureUtils.js +29 -0
- package/dist/common/src/utils/logFiles.js +51 -0
- package/dist/common/src/utils/makePrompt.js +116 -0
- package/dist/common/src/web.html.js +2 -6
- package/dist/common/testeranto.config.js +54 -24
- package/dist/common/tsconfig.common.tsbuildinfo +1 -1
- package/dist/module/design-editor/DesignEditor.js +203 -0
- package/dist/module/design-editor/index.js +2 -0
- package/dist/module/design-editor/server.js +92 -0
- package/dist/module/design-editor/types.js +1 -0
- package/dist/module/src/App.js +19 -17
- package/dist/module/src/Node.js +4 -8
- package/dist/module/src/PM/PM_WithEslintAndTsc.js +11 -35
- package/dist/module/src/PM/base.js +1 -1
- package/dist/module/src/PM/main.js +577 -109
- package/dist/module/src/PM/node.js +4 -2
- package/dist/module/src/PM/nodeSidecar.js +1 -0
- package/dist/module/src/PM/pure.js +20 -57
- package/dist/module/src/PM/pureSidecar.js +1 -1
- package/dist/module/src/PM/types.js +1 -0
- package/dist/module/src/PM/web.js +7 -4
- package/dist/module/src/Pure.js +1 -1
- package/dist/module/src/Pure.test.js +49 -79
- package/dist/module/src/ReportServer.js +8 -2
- package/dist/module/src/build.js +26 -38
- package/dist/module/src/components/DesignEditorPage.js +132 -0
- package/dist/module/src/components/SunriseAnimation.test/interface.js +32 -1
- package/dist/module/src/components/SunriseAnimation.test/types.js +1 -0
- package/dist/module/src/components/TestStatusBadge.js +1 -21
- package/dist/module/src/components/pure/AppFrame.js +32 -0
- package/dist/module/src/components/pure/AppFrame.test/implementation.js +57 -0
- package/dist/module/src/components/pure/AppFrame.test/index.js +9 -0
- package/dist/module/src/components/pure/AppFrame.test/specification.js +21 -0
- package/dist/module/src/components/pure/AppFrame.test/types.js +2 -0
- package/dist/module/src/components/pure/FeaturesReporterView.js +16 -0
- package/dist/module/src/components/pure/FeaturesReporterView.test/implementation.js +81 -0
- package/dist/module/src/components/pure/FeaturesReporterView.test/index.js +9 -0
- package/dist/module/src/components/pure/FeaturesReporterView.test/specification.js +23 -0
- package/dist/module/src/components/pure/FeaturesReporterView.test/types.js +1 -0
- package/dist/module/src/components/pure/ModalContent.js +79 -0
- package/dist/module/src/components/pure/ModalContent.test/implementation.js +32 -0
- package/dist/module/src/components/pure/ModalContent.test/index.js +53 -0
- package/dist/module/src/components/pure/ModalContent.test/specification.js +15 -0
- package/dist/module/src/components/pure/ModalContent.test/types.js +3 -0
- package/dist/module/src/{NavBar.js → components/pure/NavBar.js} +10 -11
- package/dist/module/src/components/pure/ProcessManager.js +75 -0
- package/dist/module/src/components/pure/ProcessManagerView.js +200 -0
- package/dist/module/src/components/pure/ProjectPageView.js +54 -77
- package/dist/module/src/components/pure/ProjectPageView.test/implementation.js +167 -54
- package/dist/module/src/components/pure/ProjectPageView.test/index.js +5 -1
- package/dist/module/src/components/pure/ProjectPageView.test/specification.js +15 -2
- package/dist/module/src/components/pure/ProjectPageView.test/types.js +2 -0
- package/dist/module/src/components/pure/ProjectsPageView.js +21 -14
- package/dist/module/src/components/pure/SettingsButton.js +6 -0
- package/dist/module/src/components/pure/SingleProcessView.js +214 -0
- package/dist/module/src/components/pure/TestPageView.js +470 -142
- package/dist/module/src/components/pure/TestPageView.test/implementation.js +121 -0
- package/dist/module/src/components/pure/TestPageView.test/index.js +10 -0
- package/dist/module/src/components/pure/TestPageView.test/specification.js +22 -0
- package/dist/module/src/components/pure/TestPageView.test/types.js +3 -0
- package/dist/module/src/components/pure/ThemeCard.js +8 -0
- package/dist/module/src/components/stateful/FeaturesReporter.js +22 -0
- package/dist/module/src/components/stateful/FileTree.js +33 -0
- package/dist/module/src/components/stateful/ProcessManagerPage.js +75 -0
- package/dist/module/src/components/stateful/ProjectPage.js +7 -6
- package/dist/module/src/components/stateful/ProjectsPage.js +32 -6
- package/dist/module/src/components/stateful/SettingsPage.js +35 -0
- package/dist/module/src/components/stateful/SingleProcessPage.js +110 -0
- package/dist/module/src/components/stateful/TestPage.js +123 -13
- package/dist/module/src/components/stateful/TextEditorPage.js +117 -0
- package/dist/module/src/defaultConfig.js +1 -0
- package/dist/module/src/esbuildConfigs/inputFilesPlugin.js +3 -4
- package/dist/module/src/esbuildConfigs/web.js +1 -1
- package/dist/module/src/lib/BaseSuite.js +7 -3
- package/dist/module/src/lib/BaseSuite.test/mock.js +17 -41
- package/dist/module/src/lib/BaseSuite.test/test.js +33 -42
- package/dist/module/src/lib/Sidecar.js +1 -0
- package/dist/module/src/lib/abstractBase.js +40 -13
- package/dist/module/src/lib/baseBuilder.test/baseBuilder.test.adapter.js +12 -12
- package/dist/module/src/lib/baseBuilder.test/baseBuilder.test.implementation.js +15 -13
- package/dist/module/src/lib/baseBuilder.test/baseBuilder.test.mock.js +28 -17
- package/dist/module/src/lib/baseBuilder.test/baseBuilder.test.pure.js +1 -1
- package/dist/module/src/lib/basebuilder.js +29 -35
- package/dist/module/src/lib/classBuilder.js +5 -3
- package/dist/module/src/lib/core.js +3 -6
- package/dist/module/src/lib/core.test/MockCore.js +0 -14
- package/dist/module/src/lib/core.test/core.test.adapter.js +2 -9
- package/dist/module/src/lib/core.test/core.test.implementation.js +3 -7
- package/dist/module/src/lib/index.js +13 -14
- package/dist/module/src/lib/pmProxy.js +37 -16
- package/dist/module/src/lib/pmProxy.test/adapter.js +20 -4
- package/dist/module/src/lib/pmProxy.test/implementation.js +93 -34
- package/dist/module/src/lib/pmProxy.test/mockPMBase.js +9 -0
- package/dist/module/src/lib/pmProxy.test/specification.js +3 -0
- package/dist/module/src/mothership/index.js +5 -0
- package/dist/module/src/mothership/test.js +44 -25
- package/dist/module/src/types/features.js +31 -0
- package/dist/module/src/utils/api.js +56 -25
- package/dist/module/src/utils/featureUtils.js +24 -0
- package/dist/module/src/utils/logFiles.js +46 -0
- package/dist/module/src/utils/makePrompt.js +109 -0
- package/dist/module/src/web.html.js +2 -6
- package/dist/module/testeranto.config.js +54 -24
- package/dist/module/tsconfig.module.tsbuildinfo +1 -1
- package/dist/prebuild/App.css +53 -80
- package/dist/prebuild/App.js +15520 -4397
- package/dist/prebuild/ReportServer.mjs +104 -6
- package/dist/prebuild/build.mjs +95 -108
- package/dist/prebuild/mothership/index.mjs +5 -0
- package/dist/prebuild/run.mjs +704 -221
- package/dist/types/design-editor/DesignEditor.d.ts +18 -0
- package/dist/types/design-editor/server.d.ts +1 -0
- package/dist/types/src/App.d.ts +1 -0
- package/dist/types/src/PM/index.d.ts +1 -1
- package/dist/types/src/PM/main.d.ts +37 -3
- package/dist/types/src/PM/pure.d.ts +10 -7
- package/dist/types/src/PM/web.d.ts +1 -1
- package/dist/types/src/Pure.test.d.ts +13 -1
- package/dist/types/src/Types.d.ts +1 -0
- package/dist/types/src/components/DesignEditorPage.d.ts +1 -0
- package/dist/types/src/components/SunriseAnimation.d.ts +5 -0
- package/dist/types/src/components/SunriseAnimation.test/interface.d.ts +11 -0
- package/dist/types/src/components/SunriseAnimation.test/types.d.ts +39 -0
- package/dist/types/src/components/pure/AppFrame.d.ts +11 -0
- package/dist/types/src/components/pure/AppFrame.test/implementation.d.ts +3 -0
- package/dist/types/src/components/pure/AppFrame.test/index.d.ts +5 -0
- package/dist/types/src/components/pure/AppFrame.test/specification.d.ts +3 -0
- package/dist/types/src/components/pure/AppFrame.test/types.d.ts +33 -0
- package/dist/types/src/components/pure/FeaturesReporterView.d.ts +7 -0
- package/dist/types/src/components/pure/FeaturesReporterView.test/implementation.d.ts +3 -0
- package/dist/types/src/components/pure/FeaturesReporterView.test/index.d.ts +2 -0
- package/dist/types/src/components/pure/FeaturesReporterView.test/specification.d.ts +3 -0
- package/dist/types/src/components/pure/FeaturesReporterView.test/types.d.ts +54 -0
- package/dist/types/src/components/pure/ModalContent.d.ts +7 -0
- package/dist/types/src/components/pure/ModalContent.test/implementation.d.ts +3 -0
- package/dist/types/src/components/pure/ModalContent.test/index.d.ts +3 -0
- package/dist/types/src/components/pure/ModalContent.test/specification.d.ts +3 -0
- package/dist/types/src/components/pure/ModalContent.test/types.d.ts +45 -0
- package/dist/types/src/{NavBar.d.ts → components/pure/NavBar.d.ts} +4 -0
- package/dist/types/src/components/pure/ProcessManager.d.ts +8 -0
- package/dist/types/src/components/pure/ProcessManagerView.d.ts +20 -0
- package/dist/types/src/components/pure/ProjectPageView.d.ts +7 -7
- package/dist/types/src/components/pure/ProjectPageView.test/index.d.ts +1 -2
- package/dist/types/src/components/pure/ProjectPageView.test/types.d.ts +29 -11
- package/dist/types/src/components/pure/ProjectsPageView.d.ts +29 -0
- package/dist/types/src/components/pure/SettingsButton.d.ts +2 -0
- package/dist/types/src/components/pure/SingleProcessView.d.ts +0 -0
- package/dist/types/src/components/pure/TestPageView.d.ts +15 -0
- package/dist/types/src/components/pure/TestPageView.test/implementation.d.ts +12 -0
- package/dist/types/src/components/pure/TestPageView.test/index.d.ts +3 -0
- package/dist/types/src/components/pure/TestPageView.test/specification.d.ts +11 -0
- package/dist/types/src/components/pure/TestPageView.test/types.d.ts +65 -0
- package/dist/types/src/components/pure/ThemeCard.d.ts +9 -0
- package/dist/types/src/components/stateful/FeaturesReporter.d.ts +2 -0
- package/dist/types/src/components/stateful/FileTree.d.ts +8 -0
- package/dist/types/src/components/stateful/ProcessManagerPage.d.ts +2 -0
- package/dist/types/src/components/stateful/ProjectPage.d.ts +1 -0
- package/dist/types/src/components/stateful/ProjectsPage.d.ts +1 -0
- package/dist/types/src/components/stateful/SettingsPage.d.ts +2 -0
- package/dist/types/src/components/stateful/SingleProcessPage.d.ts +2 -0
- package/dist/types/src/components/stateful/TestPage.d.ts +1 -0
- package/dist/types/src/components/stateful/TextEditorPage.d.ts +1 -0
- package/dist/types/src/lib/BaseSuite.test/mock.d.ts +3 -3
- package/dist/types/src/lib/abstractBase.d.ts +1 -1
- package/dist/types/src/lib/abstractBase.test/MockGiven.d.ts +1 -1
- package/dist/types/src/lib/baseBuilder.test/baseBuilder.test.pure.d.ts +1 -1
- package/dist/types/src/lib/basebuilder.d.ts +1 -1
- package/dist/types/src/lib/index.d.ts +8 -8
- package/dist/types/src/lib/pmProxy.test/mockPMBase.d.ts +1 -1
- package/dist/types/src/types/features.d.ts +7 -0
- package/dist/types/src/utils/api.d.ts +1 -5
- package/dist/types/src/utils/featureUtils.d.ts +6 -0
- package/dist/types/src/utils/logFiles.d.ts +71 -0
- package/dist/types/src/utils/makePrompt.d.ts +2 -0
- package/dist/types/src/web.html.d.ts +1 -1
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/docs/index.md +17 -0
- package/docs/test-page-components.md +91 -0
- package/docs/testing.prompt.txt +1 -3
- package/index.d.ts +38 -13
- package/marketing.md +166 -0
- package/package.json +38 -11
- package/src/App.tsx +22 -25
- package/src/Node.ts +6 -9
- package/src/PM/PM_WithEslintAndTsc.ts +16 -97
- package/src/PM/__tests__/nodeSidecar.testeranto.ts +2 -0
- package/src/PM/base.ts +1 -3
- package/src/PM/index.ts +1 -1
- package/src/PM/main.ts +673 -128
- package/src/PM/node.ts +5 -2
- package/src/PM/nodeSidecar.ts +1 -0
- package/src/PM/pure.ts +28 -72
- package/src/PM/pureSidecar.ts +1 -1
- package/src/PM/types.ts +0 -0
- package/src/PM/web.ts +9 -4
- package/src/Pure.test.ts +66 -101
- package/src/Pure.ts +1 -1
- package/src/README.md +85 -0
- package/src/ReportServer.ts +10 -3
- package/src/Types.ts +1 -0
- package/src/app.scss +169 -0
- package/src/build.ts +33 -55
- package/src/components/DesignEditorPage.tsx +169 -0
- package/src/components/{pure/ProjectPageView.test/index.ts → SunriseAnimation.test/index.tsx} +7 -4
- package/src/components/SunriseAnimation.test/interface.ts +49 -0
- package/src/components/SunriseAnimation.test/types.ts +53 -0
- package/src/components/TestStatusBadge.tsx +2 -23
- package/src/components/pure/AppFrame.test/implementation.tsx +72 -0
- package/src/components/pure/AppFrame.test/index.tsx +22 -0
- package/src/components/pure/AppFrame.test/specification.ts +35 -0
- package/src/components/pure/AppFrame.test/types.ts +65 -0
- package/src/components/pure/AppFrame.tsx +134 -0
- package/src/components/pure/FeaturesReporterView.test/implementation.tsx +106 -0
- package/src/components/pure/FeaturesReporterView.test/index.tsx +18 -0
- package/src/components/pure/FeaturesReporterView.test/specification.ts +39 -0
- package/src/components/pure/FeaturesReporterView.test/types.ts +77 -0
- package/src/components/pure/FeaturesReporterView.tsx +37 -0
- package/src/components/pure/ModalContent.test/implementation.tsx +45 -0
- package/src/components/pure/ModalContent.test/index.tsx +67 -0
- package/src/components/pure/ModalContent.test/specification.ts +27 -0
- package/src/components/pure/ModalContent.test/types.ts +72 -0
- package/src/components/pure/ModalContent.tsx +182 -0
- package/src/{NavBar.tsx → components/pure/NavBar.tsx} +31 -15
- package/src/components/pure/ProcessManager.tsx +117 -0
- package/src/components/pure/ProcessManagerView.tsx +414 -0
- package/src/components/pure/ProjectPageView.test/implementation.tsx +186 -57
- package/src/components/pure/ProjectPageView.test/index.tsx +18 -0
- package/src/components/pure/ProjectPageView.test/specification.ts +15 -2
- package/src/components/pure/ProjectPageView.test/types.ts +57 -13
- package/src/components/pure/ProjectPageView.tsx +155 -121
- package/src/components/pure/ProjectsPageView.tsx +73 -32
- package/src/components/pure/SettingsButton.md +1 -0
- package/src/components/pure/SettingsButton.tsx +11 -0
- package/src/components/pure/SingleProcessView.tsx +235 -0
- package/src/components/pure/TestPageView.test/implementation.ts +162 -0
- package/src/components/pure/TestPageView.test/index.tsx +20 -0
- package/src/components/pure/TestPageView.test/specification.ts +58 -0
- package/src/components/pure/TestPageView.test/types.ts +92 -0
- package/src/components/pure/TestPageView.tsx +1009 -299
- package/src/components/pure/ThemeCard.tsx +34 -0
- package/src/components/stateful/FeaturesReporter.tsx +24 -0
- package/src/components/stateful/FileTree.tsx +66 -0
- package/src/components/stateful/ProcessManagerPage.tsx +108 -0
- package/src/components/stateful/ProjectPage.tsx +10 -8
- package/src/components/stateful/ProjectsPage.tsx +36 -7
- package/src/components/stateful/SettingsPage.tsx +82 -0
- package/src/components/stateful/SingleProcessPage.tsx +155 -0
- package/src/components/stateful/TestPage.tsx +147 -30
- package/src/components/stateful/TextEditorPage.tsx +170 -0
- package/src/defaultConfig.ts +1 -0
- package/src/esbuildConfigs/inputFilesPlugin.ts +3 -4
- package/src/esbuildConfigs/web.ts +2 -1
- package/src/lib/BaseSuite.test/mock.ts +21 -68
- package/src/lib/BaseSuite.test/test.ts +39 -65
- package/src/lib/BaseSuite.ts +9 -3
- package/src/lib/Sidecar.ts +2 -0
- package/src/lib/abstractBase.test/MockGiven.ts +1 -1
- package/src/lib/abstractBase.ts +47 -20
- package/src/lib/baseBuilder.test/baseBuilder.test.adapter.ts +14 -13
- package/src/lib/baseBuilder.test/baseBuilder.test.implementation.ts +17 -14
- package/src/lib/baseBuilder.test/baseBuilder.test.mock.ts +27 -17
- package/src/lib/baseBuilder.test/baseBuilder.test.pure.ts +1 -1
- package/src/lib/basebuilder.ts +48 -54
- package/src/lib/classBuilder.ts +11 -10
- package/src/lib/core.test/MockCore.ts +0 -23
- package/src/lib/core.test/core.test.adapter.ts +6 -12
- package/src/lib/core.test/core.test.implementation.ts +7 -10
- package/src/lib/core.ts +5 -20
- package/src/lib/index.ts +28 -27
- package/src/lib/pmProxy.test/adapter.ts +18 -4
- package/src/lib/pmProxy.test/implementation.ts +130 -46
- package/src/lib/pmProxy.test/mockPMBase.ts +12 -1
- package/src/lib/pmProxy.test/specification.ts +11 -0
- package/src/lib/pmProxy.ts +42 -17
- package/src/lib/types.ts +2 -0
- package/src/mothership/index.ts +6 -0
- package/src/mothership/test.ts +53 -26
- package/src/style.md +2 -0
- package/src/style.scss +3 -486
- package/src/templates/frontpage.html +331 -0
- package/src/templates/frontpage.md +79 -0
- package/src/themes.scss +48 -16
- package/src/types/features.ts +38 -0
- package/src/utils/api.ts +66 -33
- package/src/utils/featureUtils.tsx +42 -0
- package/src/utils/logFiles.ts +60 -0
- package/src/utils/makePrompt.ts +149 -0
- package/src/web.html.ts +6 -6
- package/stargazers.txt +15 -0
- package/stargzers.js +68 -0
- package/testeranto/App.css +53 -80
- package/testeranto/App.js +15520 -4397
- package/testeranto/bundles/node/core/chunk-4CSH4UJE.mjs +872 -0
- package/testeranto/bundles/node/core/chunk-4JTDLQVA.mjs +253 -0
- package/testeranto/bundles/node/core/chunk-C3APFDUV.mjs +70 -0
- package/testeranto/bundles/node/core/src/lib/BaseSuite.test/node.test.mjs +295 -0
- package/testeranto/bundles/node/core/src/lib/baseBuilder.test/baseBuilder.test.node.mjs +243 -0
- package/testeranto/bundles/node/core/src/lib/classBuilder.test/classBuilder.test.mjs +411 -0
- package/testeranto/bundles/node/core/src/lib/core.test/core.test.mjs +494 -0
- package/testeranto/bundles/node/core/src/lib/pmProxy.test/index.mjs +4755 -0
- package/testeranto/bundles/pure/core/chunk-62UVCSQC.mjs +1022 -0
- package/testeranto/bundles/pure/core/src/Pure.test.mjs +410 -0
- package/testeranto/bundles/pure/core/src/lib/BaseSuite.test/pure.test.mjs +352 -0
- package/testeranto/bundles/pure/core/src/lib/baseBuilder.test/baseBuilder.test.pure.mjs +241 -0
- package/testeranto/bundles/web/core/src/components/pure/FeaturesReporterView.test/index.html +15 -0
- package/testeranto/bundles/web/core/src/components/pure/ProjectPageView.test/index.html +1 -5
- package/testeranto/bundles/web/core/src/components/pure/TestPageView.test/index.html +15 -0
- package/testeranto/bundles/web/core/src/lib/BaseSuite.test/web.test.html +15 -0
- package/testeranto/bundles/web/core/src/lib/baseBuilder.test/baseBuilder.test.web.html +15 -0
- package/testeranto/metafiles/node/core.json +2906 -0
- package/testeranto/metafiles/pure/core.json +860 -0
- package/testeranto/metafiles/web/core.json +546 -0
- package/testeranto/reports/core/config.json +103 -2
- package/testeranto/reports/core/src/Pure.test/pure/exit.log +0 -0
- package/testeranto/reports/core/src/Pure.test/pure/lint_errors.txt +0 -0
- package/testeranto/reports/core/src/Pure.test/pure/message.txt +17 -0
- package/testeranto/reports/core/src/Pure.test/pure/prompt.txt +14 -0
- package/testeranto/reports/core/src/Pure.test/pure/type_errors.txt +71 -0
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/debug.log +0 -0
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/error.log +3 -0
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/exit.log +1 -0
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/info.log +0 -0
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/warn.log +0 -0
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/debug.log +0 -0
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/error.log +3 -0
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/exit.log +1 -0
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/info.log +0 -0
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/warn.log +0 -0
- package/testeranto/reports/core/src/components/pure/TestPageView.test/index/web/debug.log +0 -0
- package/testeranto/reports/core/src/components/pure/TestPageView.test/index/web/error.log +3 -0
- package/testeranto/reports/core/src/components/pure/TestPageView.test/index/web/exit.log +1 -0
- package/testeranto/reports/core/src/components/pure/TestPageView.test/index/web/info.log +0 -0
- package/testeranto/reports/core/src/components/pure/TestPageView.test/index/web/warn.log +0 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/exit.log +1 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/lint_errors.txt +0 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/message.txt +17 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/prompt.txt +14 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/stderr.log +0 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/stdout.log +0 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/tests.json +31 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/type_errors.txt +61 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/pure.test/pure/exit.log +0 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/pure.test/pure/lint_errors.txt +0 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/pure.test/pure/message.txt +17 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/pure.test/pure/prompt.txt +15 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/pure.test/pure/type_errors.txt +61 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/debug.log +0 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/error.log +3 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/exit.log +1 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/info.log +0 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/warn.log +0 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/exit.log +1 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/lint_errors.txt +10 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/message.txt +17 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/prompt.txt +17 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/stderr.log +0 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/stdout.log +6 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/suite-0/given-testInitialization/then-0/butThen/hello.txt +1 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/suite-0/given-testInitialization/then-1/butThen/artifact_test.txt +1 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/tests.json +71 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/type_errors.txt +42 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.pure/pure/exit.log +0 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.pure/pure/lint_errors.txt +10 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.pure/pure/message.txt +17 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.pure/pure/prompt.txt +17 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.pure/pure/type_errors.txt +42 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/debug.log +0 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/error.log +3 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/exit.log +1 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/info.log +0 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/warn.log +0 -0
- package/testeranto/reports/core/src/lib/classBuilder.test/classBuilder.test/node/exit.log +1 -0
- package/testeranto/reports/core/src/lib/classBuilder.test/classBuilder.test/node/lint_errors.txt +0 -0
- package/testeranto/reports/core/src/lib/classBuilder.test/classBuilder.test/node/message.txt +17 -0
- package/testeranto/reports/core/src/lib/classBuilder.test/classBuilder.test/node/prompt.txt +17 -0
- package/testeranto/reports/core/src/lib/classBuilder.test/classBuilder.test/node/stderr.log +0 -0
- package/testeranto/reports/core/src/lib/classBuilder.test/classBuilder.test/node/stdout.log +619 -0
- package/testeranto/reports/core/src/lib/classBuilder.test/classBuilder.test/node/tests.json +165 -0
- package/testeranto/reports/core/src/lib/classBuilder.test/classBuilder.test/node/type_errors.txt +88 -0
- package/testeranto/reports/core/src/lib/core.test/core.test/node/exit.log +1 -0
- package/testeranto/reports/core/src/lib/core.test/core.test/node/lint_errors.txt +21 -0
- package/testeranto/reports/core/src/lib/core.test/core.test/node/message.txt +17 -0
- package/testeranto/reports/core/src/lib/core.test/core.test/node/prompt.txt +19 -0
- package/testeranto/reports/core/src/lib/core.test/core.test/node/stderr.log +0 -0
- package/testeranto/reports/core/src/lib/core.test/core.test/node/stdout.log +0 -0
- package/testeranto/reports/core/src/lib/core.test/core.test/node/type_errors.txt +45 -0
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/exit.log +1 -0
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/lint_errors.txt +15 -0
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/message.txt +17 -0
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/prompt.txt +17 -0
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/stderr.log +88 -0
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/stdout.log +10 -0
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/tests.json +152 -0
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/type_errors.txt +52 -0
- package/testeranto/reports/core/summary.json +74 -5
- package/testeranto/reportsweb_build_errors +546 -0
- package/testeranto.config.ts +58 -25
- package/tsc.log +378 -211
- package/tsconfig.common.json +4 -2
- package/tsconfig.json +9 -6
- package/tsconfig.module.json +3 -2
- package/tsconfig.types.json +3 -1
- package/dist/common/src/components/pure/ProjectPageView.test/adapter.js +0 -20
- package/dist/common/src/lib/dailyAnimation.js +0 -130
- package/dist/module/src/Footer.js +0 -5
- package/dist/module/src/ProjectPage.js +0 -319
- package/dist/module/src/ProjectsPage.js +0 -1
- package/dist/module/src/SettingsButton.js +0 -157
- package/dist/module/src/TestPage.js +0 -271
- package/dist/module/src/TestReport.js +0 -368
- package/dist/module/src/components/pure/ProjectPageView.test/adapter.js +0 -17
- package/dist/module/src/lib/dailyAnimation.js +0 -130
- package/dist/types/src/components/pure/ProjectPageView.test/adapter.d.ts +0 -3
- package/dist/types/testeranto.config.d.ts +0 -3
- package/docs/testing.ai.txt +0 -106
- package/docs.html +0 -572
- package/example.css +0 -351
- package/index.html +0 -284
- package/scripts/compile-docs.js +0 -140
- package/src/App.scss +0 -132
- package/src/Footer.tsx +0 -8
- package/src/Project.scss +0 -1
- package/src/ProjectPage.tsx +0 -459
- package/src/ProjectsPage.tsx +0 -1
- package/src/ReportApp.scss +0 -1
- package/src/SettingsButton.tsx +0 -268
- package/src/TestPage.tsx +0 -476
- package/src/TestReport.scss +0 -24
- package/src/TestReport.tsx +0 -411
- package/src/components/pure/ProjectPageView.test/adapter.ts +0 -21
- package/src/fonts.scss +0 -55
- package/src/lib/dailyAnimation.ts +0 -147
- package/style.css +0 -12156
- package/testeranto/bundles/node/core/metafile.json +0 -8
- package/testeranto/bundles/pure/core/metafile.json +0 -8
- package/testeranto/bundles/web/core/metafile.json +0 -15086
- package/testeranto/bundles/web/core/src/components/pure/ProjectPageView.test/index.mjs +0 -39991
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/lint_errors.txt +0 -18
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/logs.txt +0 -59
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/message.txt +0 -2
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/prompt.txt +0 -27
- 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/core/src/components/pure/ProjectPageView.test/index/web/type_errors.txt +0 -50
- /package/dist/types/src/{lib/dailyAnimation.d.ts → PM/types.d.ts} +0 -0
package/example.css
DELETED
|
@@ -1,351 +0,0 @@
|
|
|
1
|
-
body {
|
|
2
|
-
cursor: pointer;
|
|
3
|
-
overflow: hidden;
|
|
4
|
-
background-color: black;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
#sun {
|
|
8
|
-
position: absolute;
|
|
9
|
-
top: 0px;
|
|
10
|
-
left: 0%;
|
|
11
|
-
width: 100%;
|
|
12
|
-
height: 50%;
|
|
13
|
-
background-repeat: no-repeat;
|
|
14
|
-
background: -webkit-radial-gradient(bottom, circle, rgba(242, 248, 247, 1) 0%, rgba(249, 249, 28, 1) 3%, rgba(247, 214, 46, 1) 8%, rgba(248, 200, 95, 1) 12%, rgba(201, 165, 132, 1) 30%, rgba(115, 130, 133, 1) 51%, rgba(46, 97, 122, 1) 85%, rgba(24, 75, 106, 1) 100%);
|
|
15
|
-
background: -moz-radial-gradient(bottom, circle, rgba(242, 248, 247, 1) 0%, rgba(249, 249, 28, 1) 3%, rgba(247, 214, 46, 1) 8%, rgba(248, 200, 95, 1) 12%, rgba(201, 165, 132, 1) 30%, rgba(115, 130, 133, 1) 51%, rgba(46, 97, 122, 1) 85%, rgba(24, 75, 106, 1) 100%);
|
|
16
|
-
background: -ms-radial-gradient(bottom, circle, rgba(242, 248, 247, 1) 0%, rgba(249, 249, 28, 1) 3%, rgba(247, 214, 46, 1) 8%, rgba(248, 200, 95, 1) 12%, rgba(201, 165, 132, 1) 30%, rgba(115, 130, 133, 1) 51%, rgba(46, 97, 122, 1) 85%, rgba(24, 75, 106, 1) 100%);
|
|
17
|
-
|
|
18
|
-
z-index: 10;
|
|
19
|
-
opacity: 0.5;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
#sunDay {
|
|
23
|
-
position: absolute;
|
|
24
|
-
top: 0px;
|
|
25
|
-
left: 0px;
|
|
26
|
-
width: 100%;
|
|
27
|
-
height: 50%;
|
|
28
|
-
background-repeat: no-repeat;
|
|
29
|
-
background: -webkit-radial-gradient(bottom, circle, rgba(252, 255, 251, 0.9) 0%, rgba(253, 250, 219, 0.4) 30%, rgba(226, 219, 197, 0.01) 70%, rgba(226, 219, 197, 0.0) 70%, rgba(201, 165, 132, 0) 100%);
|
|
30
|
-
background: -moz-radial-gradient(bottom, circle, rgba(252, 255, 251, 0.9) 0%, rgba(253, 250, 219, 0.4) 30%, rgba(226, 219, 197, 0.01) 70%, rgba(226, 219, 197, 0.0) 70%, rgba(201, 165, 132, 0) 100%);
|
|
31
|
-
background: -ms-radial-gradient(bottom, circle, rgba(252, 255, 251, 0.9) 0%, rgba(253, 250, 219, 0.4) 30%, rgba(226, 219, 197, 0.01) 70%, rgba(226, 219, 197, 0.0) 70%, rgba(201, 165, 132, 0) 100%);
|
|
32
|
-
|
|
33
|
-
z-index: 999;
|
|
34
|
-
opacity: 0.5;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
#moon {
|
|
38
|
-
position: absolute;
|
|
39
|
-
top: 0px;
|
|
40
|
-
left: 0px;
|
|
41
|
-
width: 100%;
|
|
42
|
-
height: 50%;
|
|
43
|
-
background-repeat: no-repeat;
|
|
44
|
-
background: -webkit-radial-gradient(40% 55%, circle, rgba(249, 249, 250, 1) -1%, rgba(189, 255, 254, 1) 1%, rgba(8, 49, 78, 1) 1%, rgba(8, 26, 56, 1) 10%, rgba(4, 16, 46, 1) 40%, rgba(2, 8, 13, 1) 70%);
|
|
45
|
-
background: -moz-radial-gradient(40% 55%, circle, rgba(249, 249, 250, 1) -1%, rgba(189, 255, 254, 1) 1%, rgba(8, 49, 78, 1) 1%, rgba(8, 26, 56, 1) 10%, rgba(4, 16, 46, 1) 40%, rgba(2, 8, 13, 1) 70%);
|
|
46
|
-
background: -ms-radial-gradient(40% 55%, circle, rgba(249, 249, 250, 1) -1%, rgba(189, 255, 254, 1) 1%, rgba(8, 49, 78, 1) 1%, rgba(8, 26, 56, 1) 10%, rgba(4, 16, 46, 1) 40%, rgba(2, 8, 13, 1) 70%);
|
|
47
|
-
|
|
48
|
-
z-index: 10001;
|
|
49
|
-
opacity: 0;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
#sunSet {
|
|
53
|
-
position: absolute;
|
|
54
|
-
top: 0px;
|
|
55
|
-
left: 0px;
|
|
56
|
-
width: 100%;
|
|
57
|
-
height: 50%;
|
|
58
|
-
background-repeat: no-repeat;
|
|
59
|
-
background: -webkit-radial-gradient(bottom, circle, rgba(254, 255, 255, 0.8) 5%, rgba(236, 255, 0, 1) 10%, rgba(253, 50, 41, 1) 25%, rgba(243, 0, 0, 1) 40%, rgba(93, 0, 0, 1) 100%);
|
|
60
|
-
background: -moz-radial-gradient(bottom, circle, rgba(254, 255, 255, 0.8) 5%, rgba(236, 255, 0, 1) 10%, rgba(253, 50, 41, 1) 25%, rgba(243, 0, 0, 1) 40%, rgba(93, 0, 0, 1) 100%);
|
|
61
|
-
background: -ms-radial-gradient(bottom, circle, rgba(254, 255, 255, 0.8) 5%, rgba(236, 255, 0, 1) 10%, rgba(253, 50, 41, 1) 25%, rgba(243, 0, 0, 1) 40%, rgba(93, 0, 0, 1) 100%);
|
|
62
|
-
|
|
63
|
-
z-index: 999;
|
|
64
|
-
opacity: 0.3;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
#sky {
|
|
68
|
-
cursor: pointer;
|
|
69
|
-
position: absolute;
|
|
70
|
-
top: 0px;
|
|
71
|
-
left: 0px;
|
|
72
|
-
width: 100%;
|
|
73
|
-
height: 50%;
|
|
74
|
-
z-index: 5;
|
|
75
|
-
background: -webkit-linear-gradient(bottom, rgba(249, 251, 240, 1) 10%, rgba(215, 253, 254, 1) 20%, rgba(167, 222, 253, 1) 40%, rgba(110, 175, 255, 1) 100%);
|
|
76
|
-
background: -moz-linear-gradient(bottom, rgba(249, 251, 240, 1) 10%, rgba(215, 253, 254, 1) 20%, rgba(167, 222, 253, 1) 40%, rgba(110, 175, 255, 1) 100%);
|
|
77
|
-
background: -ms-linear-gradient(bottom, rgba(249, 251, 240, 1) 10%, rgba(215, 253, 254, 1) 20%, rgba(167, 222, 253, 1) 40%, rgba(110, 175, 255, 1) 100%);
|
|
78
|
-
background: linear-gradient(bottom, rgba(249, 251, 240, 1) 10%, rgba(215, 253, 254, 1) 20%, rgba(167, 222, 253, 1) 40%, rgba(110, 175, 255, 1) 100%);
|
|
79
|
-
opacity: 0.52;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
#starsContainer {
|
|
83
|
-
-webkit-perspective: 350;
|
|
84
|
-
-moz-perspective: 350;
|
|
85
|
-
perspective: 350;
|
|
86
|
-
-webkit-perspective-origin: 50% 300%;
|
|
87
|
-
perspective-origin: 50% 300%;
|
|
88
|
-
-moz-perspective-origin: 50% 300%;
|
|
89
|
-
overflow: hidden;
|
|
90
|
-
position: absolute;
|
|
91
|
-
top: 0px;
|
|
92
|
-
left: -50%;
|
|
93
|
-
width: 200%;
|
|
94
|
-
height: 50%;
|
|
95
|
-
z-index: 10000;
|
|
96
|
-
opacity: 0;
|
|
97
|
-
display: none;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
#stars {
|
|
101
|
-
background-repeat: repeat;
|
|
102
|
-
background: url(stars.jpg);
|
|
103
|
-
position: absolute;
|
|
104
|
-
width: 200%;
|
|
105
|
-
height: 200%;
|
|
106
|
-
left: -50%;
|
|
107
|
-
bottom: 0px;
|
|
108
|
-
opacity: 0.5;
|
|
109
|
-
-webkit-transform: rotateX(-90eg);
|
|
110
|
-
transform: rotateX(-90deg);
|
|
111
|
-
-moz-transform: rotateX(-90deg);
|
|
112
|
-
-ms-transform: rotateX(-90deg);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
#mountainRange {
|
|
116
|
-
position: absolute;
|
|
117
|
-
left: 0px;
|
|
118
|
-
width: 100%;
|
|
119
|
-
bottom: 50%;
|
|
120
|
-
display: none;
|
|
121
|
-
z-index: 999;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.star {
|
|
125
|
-
position: absolute;
|
|
126
|
-
display: block;
|
|
127
|
-
color: #fff;
|
|
128
|
-
width: 0px;
|
|
129
|
-
height: 0px;
|
|
130
|
-
border-right: 10px solid transparent;
|
|
131
|
-
border-bottom: 7px solid #fff;
|
|
132
|
-
border-left: 10px solid transparent;
|
|
133
|
-
-moz-transform: rotate(35deg);
|
|
134
|
-
-webkit-transform: rotate(35deg);
|
|
135
|
-
-ms-transform: rotate(35deg);
|
|
136
|
-
-o-transform: rotate(35deg);
|
|
137
|
-
z-index: 999;
|
|
138
|
-
opacity: 0.09;
|
|
139
|
-
display: none;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.star:before {
|
|
143
|
-
border-bottom: 8px solid #fff;
|
|
144
|
-
border-left: 3px solid transparent;
|
|
145
|
-
border-right: 3px solid transparent;
|
|
146
|
-
position: absolute;
|
|
147
|
-
height: 0;
|
|
148
|
-
width: 0;
|
|
149
|
-
top: -5px;
|
|
150
|
-
left: -6px;
|
|
151
|
-
display: block;
|
|
152
|
-
content: '';
|
|
153
|
-
-webkit-transform: rotate(-35deg);
|
|
154
|
-
-moz-transform: rotate(-35deg);
|
|
155
|
-
-ms-transform: rotate(-35deg);
|
|
156
|
-
-o-transform: rotate(-35deg);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.star:after {
|
|
160
|
-
position: absolute;
|
|
161
|
-
display: block;
|
|
162
|
-
color: #fff;
|
|
163
|
-
top: 0px;
|
|
164
|
-
left: -10px;
|
|
165
|
-
width: 0px;
|
|
166
|
-
height: 0px;
|
|
167
|
-
border-right: 10px solid transparent;
|
|
168
|
-
border-bottom: 7px solid #fff;
|
|
169
|
-
border-left: 10px solid transparent;
|
|
170
|
-
-webkit-transform: rotate(-70deg);
|
|
171
|
-
-moz-transform: rotate(-70deg);
|
|
172
|
-
-ms-transform: rotate(-70deg);
|
|
173
|
-
-o-transform: rotate(-70deg);
|
|
174
|
-
content: '';
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
#mountain {
|
|
178
|
-
border-bottom: 100px solid #000;
|
|
179
|
-
border-right: 100px solid transparent;
|
|
180
|
-
border-width-right: 50%;
|
|
181
|
-
width: 0px;
|
|
182
|
-
height: 0px;
|
|
183
|
-
position: absolute;
|
|
184
|
-
left: 0px;
|
|
185
|
-
bottom: 50%;
|
|
186
|
-
z-index: 999;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
#horizon {
|
|
190
|
-
cursor: pointer;
|
|
191
|
-
position: absolute;
|
|
192
|
-
top: 0px;
|
|
193
|
-
left: 0;
|
|
194
|
-
width: 100%;
|
|
195
|
-
height: 50%;
|
|
196
|
-
background-repeat: no-repeat;
|
|
197
|
-
z-index: 5;
|
|
198
|
-
background: -webkit-linear-gradient(bottom, rgba(212, 87, 43, 0.9) 0%, rgba(246, 149, 52, 0.8) 20%, rgba(24, 75, 106, 0) 100%);
|
|
199
|
-
background: -moz-linear-gradient(bottom, rgba(212, 87, 43, 0.9) 0%, rgba(246, 149, 52, 0.8) 20%, rgba(24, 75, 106, 0) 100%);
|
|
200
|
-
background: -ms-linear-gradient(bottom, rgba(212, 87, 43, 0.9) 0%, rgba(246, 149, 52, 0.8) 20%, rgba(24, 75, 106, 0) 100%);
|
|
201
|
-
background: linear-gradient(bottom, rgba(212, 87, 43, 0.9) 0%, rgba(246, 149, 52, 0.8) 20%, rgba(24, 75, 106, 0) 100%);
|
|
202
|
-
opacity: 0.99;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
#horizonNight {
|
|
206
|
-
cursor: pointer;
|
|
207
|
-
position: absolute;
|
|
208
|
-
top: 0px;
|
|
209
|
-
left: 0;
|
|
210
|
-
width: 100%;
|
|
211
|
-
height: 50%;
|
|
212
|
-
background-repeat: no-repeat;
|
|
213
|
-
z-index: 10000;
|
|
214
|
-
background: -webkit-linear-gradient(bottom, rgba(57, 167, 255, 1) 0%, rgba(13, 98, 245, 1) 20%, rgba(0, 11, 22, 0.1) 60%);
|
|
215
|
-
background: -moz-linear-gradient(bottom, rgba(57, 167, 255, 1) 0%, rgba(13, 98, 245, 1) 20%, rgba(0, 11, 22, 0.1) 60%);
|
|
216
|
-
background: -ms-linear-gradient(bottom, rgba(57, 167, 255, 1) 0%, rgba(13, 98, 245, 1) 20%, rgba(0, 11, 22, 0.1) 60%);
|
|
217
|
-
background: linear-gradient(bottom, rgba(57, 167, 255, 1) 0%, rgba(13, 98, 245, 1) 20%, rgba(0, 11, 22, 0.1) 60%);
|
|
218
|
-
opacity: 0;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
#darknessOverlaySky {
|
|
222
|
-
background-color: #000;
|
|
223
|
-
opacity: 0;
|
|
224
|
-
position: absolute;
|
|
225
|
-
top: 0px;
|
|
226
|
-
left: 0px;
|
|
227
|
-
width: 100%;
|
|
228
|
-
height: 50%;
|
|
229
|
-
z-index: 9999;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
#darknessOverlay {
|
|
233
|
-
cursor: default;
|
|
234
|
-
background-color: #000;
|
|
235
|
-
opacity: 0;
|
|
236
|
-
position: absolute;
|
|
237
|
-
bottom: 0px;
|
|
238
|
-
left: 0px;
|
|
239
|
-
width: 100%;
|
|
240
|
-
height: 50%;
|
|
241
|
-
z-index: 99;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
#waterDistance {
|
|
245
|
-
position: absolute;
|
|
246
|
-
bottom: 0px;
|
|
247
|
-
left: 0px;
|
|
248
|
-
width: 100%;
|
|
249
|
-
height: 50%;
|
|
250
|
-
background-repeat: no-repeat;
|
|
251
|
-
background: -webkit-linear-gradient(90deg, rgba(0, 0, 0, 0.0) 10%, rgba(0, 0, 0, 0.20) 44%, rgba(0, 0, 0, 0.65) 95%, rgba(0, 0, 0, 0.62) 100%);
|
|
252
|
-
background: -moz-linear-gradient(90deg, rgba(0, 0, 0, 0.0) 10%, rgba(0, 0, 0, 0.20) 44%, rgba(0, 0, 0, 0.65) 95%, rgba(0, 0, 0, 0.62) 100%);
|
|
253
|
-
background: -ms-linear-gradient(90deg, rgba(0, 0, 0, 0.0) 10%, rgba(0, 0, 0, 0.20) 44%, rgba(0, 0, 0, 0.65) 95%, rgba(0, 0, 0, 0.62) 100%);
|
|
254
|
-
z-index: 20;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
#water {
|
|
258
|
-
overflow: hidden;
|
|
259
|
-
position: absolute;
|
|
260
|
-
bottom: 0px;
|
|
261
|
-
left: 0px;
|
|
262
|
-
width: 100%;
|
|
263
|
-
height: 50%;
|
|
264
|
-
background-repeat: no-repeat;
|
|
265
|
-
background: -webkit-linear-gradient(bottom, rgba(0, 25, 45, 1) 0%, rgba(14, 71, 117, 1) 35%, rgba(26, 126, 174, 1) 70%, rgba(62, 168, 220, 1) 100%);
|
|
266
|
-
background: -moz-linear-gradient(bottom, rgba(0, 25, 45, 1) 0%, rgba(14, 71, 117, 1) 35%, rgba(26, 126, 174, 1) 70%, rgba(62, 168, 220, 1) 100%);
|
|
267
|
-
background: -ms-linear-gradient(bottom, rgba(0, 25, 45, 1) 0%, rgba(14, 71, 117, 1) 35%, rgba(26, 126, 174, 1) 70%, rgba(62, 168, 220, 1) 100%);
|
|
268
|
-
background: linear-gradient(bottom, rgba(0, 25, 45, 1) 0%, rgba(14, 71, 117, 1) 35%, rgba(26, 126, 174, 1) 70%, rgba(62, 168, 220, 1) 100%);
|
|
269
|
-
|
|
270
|
-
z-index: 10;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
#waterReflectionContainer {
|
|
274
|
-
-webkit-perspective: 30;
|
|
275
|
-
perspective: 30;
|
|
276
|
-
-webkit-perspective-origin: 50% -12%;
|
|
277
|
-
perspective-origin: 50% -12%;
|
|
278
|
-
overflow: hidden;
|
|
279
|
-
position: absolute;
|
|
280
|
-
top: 50%;
|
|
281
|
-
left: -3%;
|
|
282
|
-
width: 103%;
|
|
283
|
-
height: 50%;
|
|
284
|
-
z-index: 25;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
#waterReflectionMiddle {
|
|
288
|
-
position: absolute;
|
|
289
|
-
top: 0px;
|
|
290
|
-
left: -50%;
|
|
291
|
-
width: 200%;
|
|
292
|
-
height: 55%;
|
|
293
|
-
background-repeat: no-repeat;
|
|
294
|
-
background: -webkit-radial-gradient(50% 0px, rgba(247, 177, 72, 1) 3%, rgba(248, 175, 65, 1) 6%, rgba(207, 62, 30, 0.4) 35%, rgba(176, 91, 48, 0.1) 45%, rgba(141, 88, 47, 0.0) 60%, rgba(116, 82, 63, 0.0) 70%, rgba(44, 65, 68, 0.0) 80%, rgba(7, 19, 31, 0.0) 100%);
|
|
295
|
-
background: -moz-radial-gradient(50% 0px, rgba(247, 177, 72, 1) 3%, rgba(248, 175, 65, 1) 6%, rgba(207, 62, 30, 0.4) 35%, rgba(176, 91, 48, 0.1) 45%, rgba(141, 88, 47, 0.0) 60%, rgba(116, 82, 63, 0.0) 70%, rgba(44, 65, 68, 0.0) 80%, rgba(7, 19, 31, 0.0) 100%);
|
|
296
|
-
background: -ms-radial-gradient(50% 0px, rgba(247, 177, 72, 1) 3%, rgba(248, 175, 65, 1) 6%, rgba(207, 62, 30, 0.4) 35%, rgba(176, 91, 48, 0.1) 45%, rgba(141, 88, 47, 0.0) 60%, rgba(116, 82, 63, 0.0) 70%, rgba(44, 65, 68, 0.0) 80%, rgba(7, 19, 31, 0.0) 100%);
|
|
297
|
-
|
|
298
|
-
z-index: 999;
|
|
299
|
-
opacity: 0.7;
|
|
300
|
-
-webkit-transform: rotateX(45deg);
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
#waterReflectionMiddleThin {
|
|
304
|
-
position: absolute;
|
|
305
|
-
bottom: 0px;
|
|
306
|
-
left: 0px;
|
|
307
|
-
width: 100%;
|
|
308
|
-
height: 100%;
|
|
309
|
-
background-repeat: no-repeat;
|
|
310
|
-
background: -webkit-linear-gradient(left, rgba(69, 70, 61, 0.0) 3%, rgba(216, 100, 38, 0.10) 32%, rgba(252, 176, 48, 0.35) 35%, rgba(253, 215, 79, 1) 45%, rgba(253, 254, 225, 1) 48%, rgba(253, 254, 225, 1) 52%, rgba(024, 194, 214, 1) 55%, rgba(034, 204, 234, 0.10) 65%, rgba(034, 204, 234, 0.10) 60%, rgba(034, 204, 234, 0.0) 97%);
|
|
311
|
-
background: -moz-linear-gradient(left, rgba(69, 70, 61, 0.0) 3%, rgba(216, 100, 38, 0.10) 32%, rgba(252, 176, 48, 0.35) 35%, rgba(253, 215, 79, 1) 45%, rgba(253, 254, 225, 1) 48%, rgba(253, 254, 225, 1) 52%, rgba(024, 194, 214, 1) 55%, rgba(034, 204, 234, 0.10) 65%, rgba(034, 204, 234, 0.10) 60%, rgba(034, 204, 234, 0.0) 97%);
|
|
312
|
-
background: -ms-linear-gradient(left, rgba(69, 70, 61, 0.0) 3%, rgba(216, 100, 38, 0.10) 32%, rgba(252, 176, 48, 0.35) 35%, rgba(253, 215, 79, 1) 45%, rgba(253, 254, 225, 1) 48%, rgba(253, 254, 225, 1) 52%, rgba(024, 194, 214, 1) 55%, rgba(034, 204, 234, 0.10) 65%, rgba(034, 204, 234, 0.10) 60%, rgba(034, 204, 234, 0.0) 97%);
|
|
313
|
-
background: linear-gradient(left, rgba(69, 70, 61, 0.0) 3%, rgba(216, 100, 38, 0.10) 32%, rgba(252, 176, 48, 0.35) 35%, rgba(253, 215, 79, 1) 45%, rgba(253, 254, 225, 1) 48%, rgba(253, 254, 225, 1) 52%, rgba(024, 194, 214, 1) 55%, rgba(034, 204, 234, 0.10) 65%, rgba(034, 204, 234, 0.10) 60%, rgba(034, 204, 234, 0.0) 97%);
|
|
314
|
-
|
|
315
|
-
z-index: 999;
|
|
316
|
-
|
|
317
|
-
-webkit-transform: rotateX(45deg);
|
|
318
|
-
-moz-transform: rotateX(45deg);
|
|
319
|
-
-ms-transform: rotateX(45deg);
|
|
320
|
-
transform: rotateX(45deg);
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
#division {
|
|
324
|
-
height: 5px;
|
|
325
|
-
width: 100%;
|
|
326
|
-
position: absolute;
|
|
327
|
-
top: 50%;
|
|
328
|
-
bottom: 50%;
|
|
329
|
-
background-color: rgba(000, 14, 24, 0.0);
|
|
330
|
-
z-index: 9999;
|
|
331
|
-
cursor: ns-resize;
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
#coor {
|
|
335
|
-
position: absolute;
|
|
336
|
-
left: 0px;
|
|
337
|
-
top: 0px;
|
|
338
|
-
z-index: 999;
|
|
339
|
-
color: #fff;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
#oceanRipple {
|
|
343
|
-
background-image: repeating-linear-gradient(175deg, rgba(165, 165, 165, 0.08) 43%, rgba(175, 175, 175, 0.08) 45%, rgba(235, 235, 235, 0.08) 49%, rgba(195, 195, 195, 0.08) 50%, rgba(165, 165, 165, 0.08) 54%);
|
|
344
|
-
opacity: 0.5;
|
|
345
|
-
position: absolute;
|
|
346
|
-
left: 0%;
|
|
347
|
-
bottom: 0px;
|
|
348
|
-
width: 100%;
|
|
349
|
-
height: 50%;
|
|
350
|
-
z-index: 10;
|
|
351
|
-
}
|
package/index.html
DELETED
|
@@ -1,284 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
<!DOCTYPE html>
|
|
3
|
-
<html lang="en">
|
|
4
|
-
<head>
|
|
5
|
-
<meta charset="UTF-8">
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
7
|
-
<title>README.md</title>
|
|
8
|
-
|
|
9
|
-
<!-- Prism.js CSS -->
|
|
10
|
-
<link href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism-tomorrow.min.css" rel="stylesheet" />
|
|
11
|
-
<link href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/plugins/line-numbers/prism-line-numbers.min.css" rel="stylesheet" />
|
|
12
|
-
|
|
13
|
-
<!-- load style AFTER prism -->
|
|
14
|
-
<link rel="stylesheet" href="style.css">
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js"></script>
|
|
18
|
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-typescript.min.js"></script>
|
|
19
|
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
|
|
20
|
-
<script>
|
|
21
|
-
document.addEventListener('DOMContentLoaded', function() {
|
|
22
|
-
Prism.highlightAll();
|
|
23
|
-
|
|
24
|
-
// Parallax effect
|
|
25
|
-
const parallaxBg = document.querySelector('.parallax-background');
|
|
26
|
-
window.addEventListener('scroll', function() {
|
|
27
|
-
const scrollPosition = window.pageYOffset;
|
|
28
|
-
parallaxBg.style.transform = 'translateY(scrollPosition)';
|
|
29
|
-
});
|
|
30
|
-
});
|
|
31
|
-
</script>
|
|
32
|
-
|
|
33
|
-
</head>
|
|
34
|
-
|
|
35
|
-
<body>
|
|
36
|
-
|
|
37
|
-
<div class="container" style="padding-bottom: 5rem;">
|
|
38
|
-
<div class="row">
|
|
39
|
-
<div class="col-xs-0 col-sm-0 col-md-1">
|
|
40
|
-
</div>
|
|
41
|
-
|
|
42
|
-
<div class="col-xs-12 col-sm-12 col-md-10">
|
|
43
|
-
<div id="container">
|
|
44
|
-
<h1>testeranto</h1>
|
|
45
|
-
<h2>The AI-powered BDD test framework for TypeScript projects</h2>
|
|
46
|
-
<h4>🚧 Testeranto is still under development but a beta version will be released soon. If you are interested in joining the beta program, send an email to <a href="mailto:testeranto.dev@gmail.com">testeranto.dev@gmail.com</a>. 🚧</h4>
|
|
47
|
-
<h2>quick links</h2>
|
|
48
|
-
<ul>
|
|
49
|
-
<li>an example of the reports generated: <a href="/testeranto/projects.html">adamwong246.github.io/testeranto/testeranto</a></li>
|
|
50
|
-
<li>demo of me using testeranto to fix a bug: <a href="https://www.youtube.com/embed/WvU5xMqGi6Q">youtube</a></li>
|
|
51
|
-
<li>a starter testeranto project: <a href="https://github.com/adamwong246/testeranto-starter">testeranto-starter</a></li>
|
|
52
|
-
</ul>
|
|
53
|
-
<h2>What is testeranto?</h2>
|
|
54
|
-
<ul>
|
|
55
|
-
<li>Testeranto produces test results that can be fed to Aider.ai to automatically fix failing tests.</li>
|
|
56
|
-
<li>Testeranto tests are specified in a strongly-typed gherkin-like syntax. Rather than testing your code directly, Testeranto requires you to wrap your code with a semantic interface that is based on TS type signatures.</li>
|
|
57
|
-
<li>Testeranto can run tests in the frontend, the backend, or both.</li>
|
|
58
|
-
<li>Testeranto can be used to test anything that can be bundled with esbuild.</li>
|
|
59
|
-
<li>Testeranto connects "features" to "tests". This allows the AI to read feature documentation from external systems, like Jira.</li>
|
|
60
|
-
<li>Testeranto generates test results as a static website that can be easily deployed to GitHub Pages.</li>
|
|
61
|
-
<li>Testeranto uses esbuild to bundle its tests. The result is used to refine the list of files added to the AI's context. <strong>The consequence of this is that you can fit all relevant files, and only the relevant files, into the LLM's context.</strong></li>
|
|
62
|
-
</ul>
|
|
63
|
-
<h2>Key Technologies</h2>
|
|
64
|
-
<table>
|
|
65
|
-
<thead>
|
|
66
|
-
<tr>
|
|
67
|
-
<th></th>
|
|
68
|
-
<th></th>
|
|
69
|
-
</tr>
|
|
70
|
-
</thead>
|
|
71
|
-
<tbody><tr>
|
|
72
|
-
<td>ESM</td>
|
|
73
|
-
<td>Modern javascript tooling</td>
|
|
74
|
-
</tr>
|
|
75
|
-
<tr>
|
|
76
|
-
<td>TypeScript</td>
|
|
77
|
-
<td>Strongly-typed test definitions</td>
|
|
78
|
-
</tr>
|
|
79
|
-
<tr>
|
|
80
|
-
<td>Puppeteer</td>
|
|
81
|
-
<td>Cross-runtime testing (Node & Browser)</td>
|
|
82
|
-
</tr>
|
|
83
|
-
<tr>
|
|
84
|
-
<td>esbuild</td>
|
|
85
|
-
<td>Fast test bundling</td>
|
|
86
|
-
</tr>
|
|
87
|
-
<tr>
|
|
88
|
-
<td>Aider.ai</td>
|
|
89
|
-
<td>AI-powered test fixing</td>
|
|
90
|
-
</tr>
|
|
91
|
-
<tr>
|
|
92
|
-
<td>ESLint</td>
|
|
93
|
-
<td>Static analysis of test files</td>
|
|
94
|
-
</tr>
|
|
95
|
-
<tr>
|
|
96
|
-
<td>tsc</td>
|
|
97
|
-
<td>Type checking of test files</td>
|
|
98
|
-
</tr>
|
|
99
|
-
</tbody></table>
|
|
100
|
-
<h2>Quick Start</h2>
|
|
101
|
-
<ol>
|
|
102
|
-
<li>Install testeranto:</li>
|
|
103
|
-
</ol>
|
|
104
|
-
<pre>npm install testeranto</pre><ol start="2">
|
|
105
|
-
<li>Create a test file (e.g., <code>rectangle.test.ts</code>):</li>
|
|
106
|
-
</ol>
|
|
107
|
-
<pre class="language-typescript line-numbers"><code class="language-typescript">import { Given, When, Then } from "testeranto";
|
|
108
|
-
|
|
109
|
-
type Rectangle = { width: number; height: number };
|
|
110
|
-
|
|
111
|
-
const RectangleSpec = (Suite, Given, When, Then) => [
|
|
112
|
-
Suite.Default("Rectangle tests", {
|
|
113
|
-
test1: Given.Default(
|
|
114
|
-
["Basic rectangle operations"],
|
|
115
|
-
[When.setWidth(5), When.setHeight(10)],
|
|
116
|
-
[Then.getWidth(5), Then.getHeight(10)]
|
|
117
|
-
),
|
|
118
|
-
}),
|
|
119
|
-
];</code></pre><ol start="3">
|
|
120
|
-
<li>Run the tests</li>
|
|
121
|
-
</ol>
|
|
122
|
-
<p>To start testeranto in dev mode, build your tests in one terminal and execute them in another</p>
|
|
123
|
-
<pre># Terminal 1 - Build in watch mode
|
|
124
|
-
yarn t-build rectangle.test.ts yourProject dev
|
|
125
|
-
|
|
126
|
-
# Terminal 2 - Run in watch mode
|
|
127
|
-
yarn t-run rectangle.test.ts yourProject dev</pre><p>or build and run your tests only once</p>
|
|
128
|
-
<pre>yarn t-build rectangle.test.ts yourProject once && yarn t-run rectangle.test.ts yourProject once</pre><h2>Runtime Platforms</h2>
|
|
129
|
-
<table>
|
|
130
|
-
<thead>
|
|
131
|
-
<tr>
|
|
132
|
-
<th></th>
|
|
133
|
-
<th>You should use this runtime for...</th>
|
|
134
|
-
<th>Important differences</th>
|
|
135
|
-
</tr>
|
|
136
|
-
</thead>
|
|
137
|
-
<tbody><tr>
|
|
138
|
-
<td><strong>Node</strong> : node V8 with fork</td>
|
|
139
|
-
<td>testing backend code, Node APIs (like <code>fs</code> and <code>crypto</code>), or anything needing filesystem access</td>
|
|
140
|
-
<td>has access to the filesystem and io</td>
|
|
141
|
-
</tr>
|
|
142
|
-
<tr>
|
|
143
|
-
<td><strong>Web</strong> : chrome browser</td>
|
|
144
|
-
<td>testing frontend code, anything that uses <code>document</code> or <code>window</code>, UI interactions, or visual regression</td>
|
|
145
|
-
<td>can take screenshots/recordings</td>
|
|
146
|
-
</tr>
|
|
147
|
-
<tr>
|
|
148
|
-
<td><strong>Pure</strong> : node v8, dynamically imported</td>
|
|
149
|
-
<td>testing code that can run on both node-v8 and the browser</td>
|
|
150
|
-
<td>Very similar to "Node" but has no IO access and thus no console.log. This runtime is theoretically faster.</td>
|
|
151
|
-
</tr>
|
|
152
|
-
</tbody></table>
|
|
153
|
-
<h2>CLI Commands</h2>
|
|
154
|
-
<table>
|
|
155
|
-
<thead>
|
|
156
|
-
<tr>
|
|
157
|
-
<th></th>
|
|
158
|
-
<th></th>
|
|
159
|
-
</tr>
|
|
160
|
-
</thead>
|
|
161
|
-
<tbody><tr>
|
|
162
|
-
<td><code>yarn t-init</code></td>
|
|
163
|
-
<td>Create a new testeranto project</td>
|
|
164
|
-
</tr>
|
|
165
|
-
<tr>
|
|
166
|
-
<td><code>yarn t-build <YOUR_TESTS> dev|once</code></td>
|
|
167
|
-
<td>Build test bundles (watch or single-run mode)</td>
|
|
168
|
-
</tr>
|
|
169
|
-
<tr>
|
|
170
|
-
<td><code>yarn t-run <YOUR_TESTS> dev|once</code></td>
|
|
171
|
-
<td>Run tests (watch or single-run mode)</td>
|
|
172
|
-
</tr>
|
|
173
|
-
<tr>
|
|
174
|
-
<td><code>yarn t-report</code></td>
|
|
175
|
-
<td>Launch test report server</td>
|
|
176
|
-
</tr>
|
|
177
|
-
<tr>
|
|
178
|
-
<td><code>yarn t-aider</code></td>
|
|
179
|
-
<td>Fix failing tests with AI</td>
|
|
180
|
-
</tr>
|
|
181
|
-
</tbody></table>
|
|
182
|
-
<h2>Example workflow:</h2>
|
|
183
|
-
<pre># Initialize project
|
|
184
|
-
yarn t-init
|
|
185
|
-
|
|
186
|
-
# Write tests in test/*.test.ts
|
|
187
|
-
|
|
188
|
-
# In terminal 1 - Build tests (watch mode)
|
|
189
|
-
yarn t-build test/rectangle.test.ts dev
|
|
190
|
-
|
|
191
|
-
# In terminal 2 - Run tests (watch mode)
|
|
192
|
-
yarn t-run test/rectangle.test.ts dev
|
|
193
|
-
|
|
194
|
-
# Or for single-run mode:
|
|
195
|
-
yarn t-build test/rectangle.test.ts once
|
|
196
|
-
yarn t-run test/rectangle.test.ts once
|
|
197
|
-
|
|
198
|
-
# Get AI help with failures
|
|
199
|
-
yarn t-aider</pre><h2>Aider</h2>
|
|
200
|
-
<p>Testeranto generates a "prompt" alongside test results. This prompt is passed to aider as input.</p>
|
|
201
|
-
<pre>// input src files that can be edited by Aider
|
|
202
|
-
/add test/node.ts
|
|
203
|
-
|
|
204
|
-
// test report files that inform aider but should not be edited
|
|
205
|
-
/read testeranto/reports/allTests/node/test/node/tests.json
|
|
206
|
-
/read testeranto/reports/allTests/test/node/node/lint_errors.json
|
|
207
|
-
/read testeranto/reports/allTests/test/node/node/type_errors.txt
|
|
208
|
-
|
|
209
|
-
// A list of features which can inform aider.
|
|
210
|
-
/load testeranto/reports/allTests/node/test/node/featurePrompt.txt
|
|
211
|
-
|
|
212
|
-
// tell the AI what to do
|
|
213
|
-
Fix the failing tests described in testeranto/reports/allTests/node/test/node/tests.json. Correct any type signature errors described in the files testeranto/reports/allTests/test/node/node/type_errors.txt. Implement any method which throws "Function not implemented. Resolve the lint errors described in testeranto/reports/allTests/test/node/node/lint_errors.json"</pre><h2>"Features"</h2>
|
|
214
|
-
<p>Testeranto connects "features" to tests. The features may be simple strings, but they can also take the form of local markdown files, or remote URLs to external feature tracking systems. For instance, this could be a jira ticket or a github issue. These features are used to inform the AI context.</p>
|
|
215
|
-
<pre class="language-typescript line-numbers"><code class="language-typescript">import someMarkdownFile from "someMarkdownFile.md";
|
|
216
|
-
|
|
217
|
-
...
|
|
218
|
-
|
|
219
|
-
test0: Given.Default(
|
|
220
|
-
[
|
|
221
|
-
"https://api.github.com/repos/adamwong246/testeranto/issues/8",
|
|
222
|
-
"you can set the width and height of a Rectangle",
|
|
223
|
-
someMarkdownFile
|
|
224
|
-
],
|
|
225
|
-
|
|
226
|
-
[When.setWidth(4), When.setHeight(19)],
|
|
227
|
-
[Then.getWidth(4), Then.getHeight(19)]
|
|
228
|
-
),
|
|
229
|
-
...
|
|
230
|
-
</code></pre><h2>eslint and tsc</h2>
|
|
231
|
-
<p>Alongside the BDD tests, Testeranto runs ESLint and tsc on the input files to generate a list of static analysis errors and type errors, respectively. Aider will use this to resolve both.</p>
|
|
232
|
-
<h2>Subprojects</h2>
|
|
233
|
-
<p>Testeranto has a core repo, but there are also sub-projects which implement tests by type and by technology</p>
|
|
234
|
-
<h3>testeranto-solidity</h3>
|
|
235
|
-
<p>Test a solidity contract. Also included is an example of deploying a contract to a ganache server.</p>
|
|
236
|
-
<h3>testeranto-reduxtoolkit</h3>
|
|
237
|
-
<p>Tests a Redux store.</p>
|
|
238
|
-
<h3>testeranto-http</h3>
|
|
239
|
-
<p>Tests a Node HTTP server.</p>
|
|
240
|
-
<h3>testeranto-react (COMING SOON)</h3>
|
|
241
|
-
<p>Test a react component. You can choose from a variety of types (jsx functions, class style, etc) and you can test with <code>react</code>, <code>react-dom</code>, or <code>react-test-renderer</code></p>
|
|
242
|
-
<h3>testeranto-express (COMING SOON)</h3>
|
|
243
|
-
<h3>testeranto-xstate (COMING SOON)</h3>
|
|
244
|
-
<h2>Sidecars (COMING SOON)</h2>
|
|
245
|
-
<p>Alongside your test, you can include a number of "sidecars" - other bundled JavaScript assets upon which your test depends. For example, suppose you have an app with frontend and backend components. You could run a React test in the web and include the Node HTTP server as a sidecar.</p>
|
|
246
|
-
|
|
247
|
-
</div>
|
|
248
|
-
</div>
|
|
249
|
-
|
|
250
|
-
<div class="col-xs-0 col-sm-0" col-md-1">
|
|
251
|
-
</div>
|
|
252
|
-
</div>
|
|
253
|
-
|
|
254
|
-
<div class="container-fluid">
|
|
255
|
-
<nav class="navbar fixed-bottom navbar-light bg-light">
|
|
256
|
-
<div class="container-fluid justify-content-center">
|
|
257
|
-
<ul class="nav">
|
|
258
|
-
<li class="nav-item">
|
|
259
|
-
<a class="nav-link" href="/">Home</a>
|
|
260
|
-
</li>
|
|
261
|
-
<li class="nav-item">
|
|
262
|
-
<a class="nav-link" href="https://github.com/testeranto/testeranto" target="_blank">GitHub</a>
|
|
263
|
-
</li>
|
|
264
|
-
<li class="nav-item">
|
|
265
|
-
<a class="nav-link" href="https://www.npmjs.com/package/testeranto" target="_blank">NPM</a>
|
|
266
|
-
</li>
|
|
267
|
-
</ul>
|
|
268
|
-
</div>
|
|
269
|
-
</nav>
|
|
270
|
-
</div>
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
</div>
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
</body>
|
|
284
|
-
</html>
|