Add a Testing section to README.md that covers both test tracks, all prerequisite environment variables, graceful skip behavior, and how to run a single test file in isolation. This is the final phase — the documentation must accurately reflect the infrastructure built in prior phases.
Requirements
- Add a
## Testing section to README.md covering:
- Fast suite (
npm test): offline, no credentials required, no live binaries needed
- Live suite (
npm run test:live): requires claude in PATH and either ANTHROPIC_API_KEY or CLAUDE_CODE_OAUTH_TOKEN set; for Copilot tests, requires copilot CLI installed and authenticated via gh auth login
- Graceful skipping: when prerequisites are absent, suites skip rather than fail — explain this explicitly so contributors are not confused by
0 tests passed, 6 skipped output
- Single test isolation: show exact command to run one test file without running the full suite, e.g.,
npx vitest run src/__tests__/live/claude.live.test.ts --config vitest.config.live.ts
- Documentation must be accurate: environment variable names must match what
claude.live.test.ts and copilot.live.test.ts actually check
Design Guidance
Implements the 'Documentation' phase (Phase 6, section 6.1) of the architecture design and FR-8 from the business requirements. The specific commands, environment variable names, and skip-behavior explanation are all derived from the architecture's documentation section.
Acceptance Criteria
Dependencies
Phase 1, Phase 3, Phase 5, Phase 6
Add a Testing section to README.md that covers both test tracks, all prerequisite environment variables, graceful skip behavior, and how to run a single test file in isolation. This is the final phase — the documentation must accurately reflect the infrastructure built in prior phases.
Requirements
## Testingsection toREADME.mdcovering:npm test): offline, no credentials required, no live binaries needednpm run test:live): requiresclaudein PATH and eitherANTHROPIC_API_KEYorCLAUDE_CODE_OAUTH_TOKENset; for Copilot tests, requirescopilotCLI installed and authenticated viagh auth login0 tests passed, 6 skippedoutputnpx vitest run src/__tests__/live/claude.live.test.ts --config vitest.config.live.tsclaude.live.test.tsandcopilot.live.test.tsactually checkDesign Guidance
Implements the 'Documentation' phase (Phase 6, section 6.1) of the architecture design and FR-8 from the business requirements. The specific commands, environment variable names, and skip-behavior explanation are all derived from the architecture's documentation section.
Acceptance Criteria
README.mdcontains a Testing section with subsections for fast and live suitesnpm testcommand is documented with a note that it requires no credentialsnpm run test:livecommand is documented with exact environment variable names for both Claude and Copilot--config vitest.config.live.tsis shownDependencies
Phase 1, Phase 3, Phase 5, Phase 6