Skip to content

test(#405): add integration tests for phase retry, timeout, and pipeline - #479

Merged
admarble merged 1 commit into
mainfrom
feature/405-run-test-ts-over-mocking-limits-integration-confid
Mar 28, 2026
Merged

admarble merged 1 commit into
mainfrom
feature/405-run-test-ts-over-mocking-limits-integration-confid

Conversation

@admarble

Copy link
Copy Markdown
Contributor

Summary

  • Adds 10 new unit tests to phase-executor.test.ts covering cold-start retry success/failure, MCP fallback paths, spec-specific retry with backoff, and ShutdownManager abort controller integration
  • Creates run-pipeline.integration.test.ts with 8 integration tests exercising the full pipeline (executePhaseWithRetry + real StateManager): 3-phase result collection, partial failure handling, session continuity, timeout recording, and state file persistence
  • Zero production code changes — test-only additions

Test plan

  • npm run build passes
  • npm run lint passes (0 errors, 0 warnings)
  • npm test passes (2357 passed, 3 pre-existing known failures: MCP SIGINT flaky, semgrep timeout, discoverUntrackedWorktrees timeout)
  • New tests run independently: 61/61 pass

Closes #405

🤖 Generated with Claude Code

…ine execution

Add comprehensive test coverage for executePhaseWithRetry and the
run pipeline to increase integration confidence beyond unit-level mocking:

- Cold-start retry success/failure paths (AC-2)
- MCP fallback retry path (AC-5)
- Spec-specific retry with backoff (AC-6)
- ShutdownManager abort controller integration (AC-3)
- Pipeline result collection across 3-phase execution (AC-1)
- State file tracking of phase status after pipeline runs (AC-7)

Closes #405
@admarble
admarble merged commit 87d83f7 into main Mar 28, 2026
5 checks passed
@admarble
admarble deleted the feature/405-run-test-ts-over-mocking-limits-integration-confid branch April 6, 2026 21:50
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.

run.test.ts over-mocking limits integration confidence

1 participant