Commit Graph

3 Commits

Author SHA1 Message Date
Steve Yegge
0f4b03e262 Optimize test suite: split integration tests, add -short support
- Split slow importer integration tests into separate file
- Add t.Short() guards to 10 slow daemon tests
- Document test organization in TEST_OPTIMIZATION.md
- Fast tests now run in ~50s vs 3+ minutes
- Use 'go test -short ./...' for fast feedback

Amp-Thread-ID: https://ampcode.com/threads/T-29ae21ac-749d-43d7-bf0c-2c5f7a06ae76
Co-authored-by: Amp <amp@ampcode.com>
2025-11-05 20:39:47 -08:00
Steve Yegge
bc13329fb0 fix: resolve test failures from speedup changes
- Add file: URI handling to properly support test databases with custom URIs
- Change :memory: databases to use DELETE journal mode (WAL incompatible)
- Switch test helper to use temp files instead of in-memory for reliability
- Skip TestInMemorySharedCache (multiple New() calls create separate DBs)
- Update adaptive length test to use newTestStore()
- Merge with upstream fix for :memory: connection pool (SetMaxOpenConns(1))

All previously failing tests now pass.

Amp-Thread-ID: https://ampcode.com/threads/T-80e427aa-40e0-48a6-82e0-e29a93edd444
Co-authored-by: Amp <amp@ampcode.com>
2025-11-04 01:08:21 -08:00
Steve Yegge
86945f2ac4 Add event-driven daemon documentation and platform tests
- Document BEADS_DAEMON_MODE environment variable in AGENTS.md
- Add comprehensive platform tests for FileWatcher (Linux/macOS/Windows)
- Close bd-75, bd-79, bd-83, bd-85 (event-driven daemon epic complete)
2025-10-29 15:53:41 -07:00