Skip to content
This repository was archived by the owner on Jan 11, 2026. It is now read-only.

Commit 18f164d

Browse files
rmurpheyclaude
andcommitted
refactor: remove script tests in favor of utility testing
- Removed retrospective.unit.test.js - Reverted retrospective.js to original (no module.exports) - Documented learning: scripts aren't worth unit testing - Scripts are entry points that change frequently - Focus on testing reusable utility functions instead - Integration tests more valuable than unit tests for scripts 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 5f77fcd commit 18f164d

File tree

3 files changed

+11
-153
lines changed

3 files changed

+11
-153
lines changed

ACTIVE_WORK.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
# Active Work - Claude Setup Repository
22

33
## Current Sprint
4-
- [ ] Create command testing suite
4+
- [x] Create command testing suite - COMPLETED: Determined scripts aren't worth unit testing
55
- [ ] Create an agent that recommends opportunities to add tests
66
- [ ] Create a VERY SIMPLE script that can be used via npx to add these commands to your project
77

8+
### Testing Scripts Learning (2025-08-16)
9+
- ✅ Explored testing scripts vs utilities
10+
- **Learning**: Scripts are entry points, not worth unit testing
11+
- **Decision**: Test utility functions, not script orchestration
12+
- Scripts change frequently and are mostly glue code
13+
- Integration tests > unit tests for scripts
14+
- Removed retrospective.js tests and reverted changes
15+
816
## Ideas & Planning
917
- ⏸️ VS Code extension integration
1018

scripts/retrospective.js

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -211,18 +211,5 @@ ${learnings.map(l => `- ${l}`).join('\n') || '- Session focused on implementatio
211211
}
212212
}
213213

214-
// Export for testing
215-
if (require.main === module) {
216-
// Run the retrospective when called directly
217-
generateReport();
218-
} else {
219-
// Export functions for testing
220-
module.exports = {
221-
generateReport,
222-
analyzeGitHistory,
223-
getMetrics,
224-
identifyLearnings,
225-
updateLearnings,
226-
runCommand
227-
};
228-
}
214+
// Run the retrospective
215+
generateReport();

test/retrospective.unit.test.js

Lines changed: 0 additions & 137 deletions
This file was deleted.

0 commit comments

Comments
 (0)