Steve Yegge
fa727c7d73
refactor: Delete 7 redundant tests from main_test.go (3x speedup)
...
Problem: main_test.go was testing deprecated legacy path after FlushManager
refactoring (bd-52), duplicating coverage from flush_manager_test.go.
Solution: Delete redundant tests, keep only unique integration tests.
Changes:
- Deleted 7 tests (407 lines) covered by flush_manager_test.go:
* TestAutoFlushDirtyMarking → TestFlushManagerMarkDirtyTriggersFlush
* TestAutoFlushDisabled → TestFlushManagerDisabledDoesNotFlush
* TestAutoFlushDebounce (already skipped, obsolete)
* TestAutoFlushClearState (tested implicitly in export/sync)
* TestAutoFlushConcurrency → TestFlushManagerConcurrentMarkDirty
* TestAutoFlushStoreInactive → TestPerformFlushStoreInactive
* TestAutoFlushErrorHandling → TestPerformFlushErrorHandling
- Kept 2 unique integration tests:
* TestAutoFlushOnExit (tests PersistentPostRun)
* TestAutoFlushJSONLContent (tests actual JSONL output)
- Updated clearAutoFlushState() to no-op when FlushManager exists
Results:
- Before: 18 tests, 1079 lines, ~15-20s
- After: 11 tests, 672 lines, ~5-7s
- Speedup: ~3x faster
- All tests passing ✅
Files:
- cmd/bd/main_test.go: Deleted 7 tests, removed unused imports
- cmd/bd/autoflush.go: Updated clearAutoFlushState()
- docs/MAIN_TEST_REFACTOR_NOTES.md: Documented solution
- docs/MAIN_TEST_CLEANUP_PLAN.md: Created detailed plan
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-11-21 21:29:43 -05:00
Steve Yegge
8efab3df87
chore: Move design/audit docs from cmd/bd to docs/
...
Relocate documentation files to centralize all .md files in docs/ directory
(except those with historical precedent in specific locations like commands/,
examples/, integrations/, etc.).
Files moved:
- cmd/bd/doctor/claude.md -> docs/CLAUDE_INTEGRATION.md
- cmd/bd/MAIN_TEST_REFACTOR_NOTES.md -> docs/MAIN_TEST_REFACTOR_NOTES.md
- cmd/bd/TEST_SUITE_AUDIT.md -> docs/TEST_SUITE_AUDIT.md
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-11-21 20:31:47 -05:00