feat: Add test infrastructure with automatic skip list

Overview: Added comprehensive test infrastructure to handle the large
test suite (41K LOC, 313 tests in cmd/bd alone) with automatic skipping
of known broken tests.

Changes:
- .test-skip: List of broken tests to skip (with GH issue references)
- scripts/test.sh: Smart test runner that auto-skips broken tests
- docs/TESTING.md: Comprehensive testing guide
- .claude/test-strategy.md: Quick reference for AI agents
- Updated Makefile to use new test script

Known Issues Filed:
- GH #355: TestFallbackToDirectModeEnablesFlush (database deadlock)
- GH #356: TestFindJSONLPathDefault (wrong JSONL filename)

Performance: 3min total (180s compilation, 3.8s execution)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Steve Yegge
2025-11-21 22:38:05 -05:00
parent 3065db261e
commit 0040e8029b
5 changed files with 385 additions and 2 deletions

8
.test-skip Normal file
View File

@@ -0,0 +1,8 @@
# Tests to skip due to known issues
# Format: one test name per line (regex patterns supported)
# Issue #355: Deadlocks with database mutex during cleanup
TestFallbackToDirectModeEnablesFlush
# Issue #356: Expects wrong JSONL filename (issues.jsonl vs beads.jsonl)
TestFindJSONLPathDefault