From 7426dcf2b9ee9ba09253856dcb29f828ced34e72 Mon Sep 17 00:00:00 2001 From: Jonah Schulte Date: Sun, 25 Jan 2026 23:08:11 -0500 Subject: [PATCH] docs: document missing workflow test coverage Current status: - No tests for batch-super-dev workflow - No tests for super-dev-pipeline workflows - Dependency-resolver has 56 failing tests (pre-existing) Test coverage TODO documented for future implementation. --- test/TODO-WORKFLOW-TESTS.md | 88 +++++++++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 test/TODO-WORKFLOW-TESTS.md diff --git a/test/TODO-WORKFLOW-TESTS.md b/test/TODO-WORKFLOW-TESTS.md new file mode 100644 index 00000000..de48fd5a --- /dev/null +++ b/test/TODO-WORKFLOW-TESTS.md @@ -0,0 +1,88 @@ +# TODO: Workflow Tests + +**Status:** No tests exist for workflow execution +**Priority:** HIGH +**Blocking:** No (pre-existing issue) + +--- + +## Missing Test Coverage + +### Workflows Without Tests: +1. **batch-super-dev** - Interactive story selector +2. **super-dev-pipeline** - Story implementation pipeline +3. **super-dev-pipeline-v2** - Multi-agent pipeline +4. **create-story** - Lightweight story creation +5. **create-story-with-gap-analysis** - Story with codebase scan + +### What Should Be Tested: + +**batch-super-dev:** +- [ ] Step order (sprint-status → display → select → validate → create → execute) +- [ ] Backlog story handling (marks for creation) +- [ ] Ready-for-dev story handling +- [ ] Story selection parsing (ranges, commas, "all") +- [ ] Complexity scoring logic +- [ ] Execution mode selection +- [ ] Batch story creation (Step 2.7) + +**super-dev-pipeline:** +- [ ] Step execution order +- [ ] Gap analysis detection (greenfield vs brownfield) +- [ ] Quality gate enforcement (type-check, lint, build, tests) +- [ ] Story checkbox updates +- [ ] Sprint-status updates +- [ ] Commit creation + +**super-dev-pipeline-v2:** +- [ ] Multi-agent spawning (builder, inspector, reviewer, fixer) +- [ ] Fresh context per agent +- [ ] Independent validation +- [ ] Final verification checks + +--- + +## Test Strategy + +### Unit Tests +Test individual step logic: +- Story file parsing +- Complexity scoring algorithm +- Checkbox counting +- Sprint-status parsing + +### Integration Tests +Test workflow execution: +- Mock file system +- Verify step order +- Check output files created +- Verify git commits + +### End-to-End Tests +Test full workflow: +- Real story files +- Actual codebase +- Verify implementation quality + +--- + +## Implementation Plan + +**Phase 1: Unit Tests** (1 week) +- Test complexity scoring +- Test story validation +- Test file parsing + +**Phase 2: Integration Tests** (1 week) +- Mock workflow execution +- Verify step order +- Check outputs + +**Phase 3: E2E Tests** (1 week) +- Full workflow execution +- Real story implementation +- Quality verification + +--- + +**Note:** Current test failures (56 failing tests) are in `dependency-resolver` tests, unrelated to workflow changes. Those should be fixed separately.