refactor(e2e): 解耦 E2E 测试到 commands 层与共享 e2e 包#92
Closed
hopelynd wants to merge 4 commits into
Closed
Conversation
- Added e2e package as a workspace dependency in pnpm-lock.yaml. - Updated globalSetup path in vite.config.ts to point to the new e2e package location. - Enhanced documentation for CLI E2E testing, including architecture layers and triggering conditions. - Refactored test paths and commands in the documentation to align with the new structure. - Removed outdated dataset and auth E2E tests to streamline the test suite. - Updated command references and validation checks in the documentation to reflect recent changes.
Runtime pack build was pulling in e2e test imports and tsgo emitted helpers.d.ts beside commands/tests; restrict runtime tsconfig to src and ignore tests/**/*.d.ts in fmt/gitignore as a safety net.
Runtime tsconfig already limits pack to src, so tests/**/*.d.ts is never emitted during build; the fmt ignore and gitignore entries are unnecessary.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
packages/e2e共享基建(gating / runner / output / globalSetup),各包通过 workspace 依赖复用,不发布到 npm。packages/cli/tests/e2e下 ~30 个 topic 用例迁入packages/commands/tests/e2e,通过自维护 harness(binName: "bl")执行;kscli knowledge live 合并为knowledge chat/search路径。cli/kscli仅保留 registry smoke;proxy.e2e与 console 跨域 flag 拒绝迁入packages/runtime/tests。e2e-command-map契约测试与tools/compare-e2e-command-map.tsadvisory 脚本,更新cli-e2e-tests.md/command-add-remove.md。Test plan
vp check通过vp test packages/commands/tests/e2e/— 32 files, 298 passedvp test packages/cli/tests/e2e/registry.smoke.e2e.test.ts— 100 passedvp test packages/kscli/tests/e2e/registry.smoke.e2e.test.ts— 7 passedvp test packages/runtime/tests/proxy.e2e.test.ts packages/runtime/tests/console-flags.e2e.test.ts— 7 passedvp test packages/commands/tests/e2e/harness/e2e-command-map.contract.test.ts— 4 passednode tools/compare-e2e-command-map.ts— cli map 与 harness map aligned