Skip to content

test(#238): Add integration tests for testgen auto-detection workflow - #252

Merged
admarble merged 2 commits into
mainfrom
feature/238-test-add-integration-tests-for-testgen-auto-detect
Feb 4, 2026
Merged

admarble merged 2 commits into
mainfrom
feature/238-test-add-integration-tests-for-testgen-auto-detect

Conversation

@admarble

@admarble admarble commented Feb 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add 3 tests verifying parseRecommendedWorkflow correctly parses the testgen phase in recommended workflow output
  • Add 8 tests verifying the /testgen skill documentation contains proper haiku sub-agent usage patterns
  • All tests use fixtures/file reads only - no external API calls, fully CI-compatible

Pre-PR AC Verification

AC Source Description Status Evidence
AC-1 Original Integration test verifies /spec recommends testgen for appropriate issues ✅ Implemented src/commands/run.test.ts:314-362 - Tests parseRecommendedWorkflow with testgen phase
AC-2 Original Documentation/test confirms /testgen uses haiku sub-agents at runtime ✅ Implemented src/lib/__tests__/testgen-skill.test.ts - Verifies skill file contains haiku patterns
AC-3 Original Test can run in CI (mocking/fixtures as needed) ✅ Implemented Tests use file reads only, no external calls

Test plan

  • npm test passes (1169 tests)
  • npm run build succeeds
  • New tests verify testgen phase parsing and haiku documentation

Closes #238

🤖 Generated with Claude Code

- Add tests verifying parseRecommendedWorkflow correctly parses testgen phase
- Add testgen skill verification tests confirming haiku sub-agent documentation
- Tests verify AC-1 (testgen in recommended workflow) and AC-2 (haiku documentation)
- All tests run in CI without external dependencies (AC-3)

Closes #238

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Closes gap in AC-1 by verifying that /spec skill contains testgen
recommendation rules, not just that the parser handles testgen.

New tests verify:
- "When to recommend testgen phase" section exists
- Unit Test verification method triggers testgen
- Integration Test verification method triggers testgen
- Decision table and algorithm documentation
- Exclusion rules (bug-only, docs labels skip testgen)
- Example output showing testgen in workflow

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@admarble
admarble merged commit 0de496d into main Feb 4, 2026
6 checks passed
@admarble
admarble deleted the feature/238-test-add-integration-tests-for-testgen-auto-detect branch February 4, 2026 18:07
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.

test: Add integration tests for testgen auto-detection workflow

1 participant