mirror of
https://github.com/Fission-AI/OpenSpec.git
synced 2026-09-14 20:16:53 +08:00
959 B
959 B
1. Phase 1 – Stabilize Local Spawn Coverage
- 1.1 Add
test/helpers/run-cli.tsthat ensures the build runs once and executesnode dist/cli/index.jswith non-TTY defaults; updatevitest.setup.tsto reuse the shared build step. - 1.2 Seed
test/cli-e2eusing the minimal fixture set (tmp-initor copy) to cover help/version, a happy-pathvalidate, and a representative error flow via the new helper. - 1.3 Migrate the highest-value existing CLI exec tests (e.g., validate) onto
runCLIand summarize Phase 1 coverage in this proposal for the next phase.
2. Phase 2 – Expand Cross-Shell Validation
- 2.1 Exercise both entry points (
node dist/cli/index.js,bin/openspec.js) in the spawn suite and add diagnostics for shell/OS context. - 2.2 Extend GitHub Actions to run the spawn suite on bash jobs for Linux/macOS and a
pwshjob on Windows; capture shell/OS diagnostics and note follow-ups for additional shells.