Skip to content

End-to-end pipeline integration test#29

Merged
4nkur merged 1 commit intomainfrom
integration-test
Apr 26, 2026
Merged

End-to-end pipeline integration test#29
4nkur merged 1 commit intomainfrom
integration-test

Conversation

@4nkur
Copy link
Copy Markdown
Owner

@4nkur 4nkur commented Apr 26, 2026

Five tests under test/integration/pipeline.test.js drive every command in sequence against a real temp directory with no loadConfig / scan / etc injection. Covers the cross-command seams unit tests can't reach: init writing a config that downstream commands parse, list/show finding spec dirs in the right shape, scan/explain reaching the right branch based on project state.

Brownfield path uses a fake Express fixture (package.json + src/index.js with three routes); greenfield path uses an empty dir + canned idea. Agent mode only — no AI mocking needed since agent mode dumps to stdout. API mode integration would need canned complete responses for each phase; can layer on later.

Closes audit P2 #1.

Five tests under test/integration/pipeline.test.js drive every command in sequence against a real temp directory with no `loadConfig` / `scan` / etc injection. Covers the cross-command seams unit tests can't reach: init writing a config that downstream commands parse, list/show finding spec dirs in the right shape, scan/explain reaching the right branch based on project state.

Brownfield path uses a fake Express fixture (package.json + src/index.js with three routes); greenfield path uses an empty dir + canned idea. Agent mode only — no AI mocking needed since agent mode dumps to stdout. API mode integration would need canned `complete` responses for each phase; can layer on later.

Closes audit P2 #1.
@4nkur 4nkur merged commit dfb18a5 into main Apr 26, 2026
2 checks passed
@4nkur 4nkur deleted the integration-test branch April 26, 2026 06:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant