Skip to content

test: Add CLI workflow E2E test (init -> validate -> audit -> generate)#50

Open
iliassjabali wants to merge 1 commit intomainfrom
test/cli-e2e-workflow
Open

test: Add CLI workflow E2E test (init -> validate -> audit -> generate)#50
iliassjabali wants to merge 1 commit intomainfrom
test/cli-e2e-workflow

Conversation

@iliassjabali
Copy link
Copy Markdown
Collaborator

@iliassjabali iliassjabali commented Apr 12, 2026

Summary

  • Add an E2E test that runs the full CLI happy-path in a temp directory: init --yes -> validate -> health -> audit -> generate --dry-run
  • Allow generate --dry-run to exit 0 when ANTHROPIC_API_KEY is missing (validation-only mode), so the entire workflow runs in CI with no external API keys
  • Update existing dry-run test expectation to match the new behavior

Test plan

  • All 441 CLI tests pass (pnpm --filter @agentspec/cli test)
  • Full workspace test suite passes (pnpm test)
  • Typecheck clean (pnpm typecheck)
  • Lint clean (pnpm lint)
  • CI passes on this PR

Closes #26

… -> generate)

Allow `generate --dry-run` to exit 0 when ANTHROPIC_API_KEY is missing
by validating the manifest and framework without calling Claude. This
enables the full CLI happy-path to run in CI with no external API keys.

Closes #26
@iliassjabali iliassjabali self-assigned this Apr 12, 2026
@iliassjabali iliassjabali changed the title Add CLI workflow E2E test (init -> validate -> audit -> generate) test: Add CLI workflow E2E test (init -> validate -> audit -> generate) Apr 12, 2026
@iliassjabali iliassjabali removed their assignment Apr 12, 2026
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.

Add CLI workflow E2E test (init → validate → audit → generate)

1 participant