Steve Yegge
9099032545
Fix remaining Windows test failures
...
- TestFindBeadsDir_NotFound: Allow finding .beads in parent dirs (e.g., home)
- TestDatabaseReinitialization: Fix git path conversion on Windows
Git returns Unix-style paths (/c/Users/...) but filepath needs Windows paths
2025-11-02 10:01:38 -08:00
Steve Yegge
e313e6e2c2
Improve test coverage for cmd/bd
...
- Add comprehensive version mismatch tests (checkVersionMismatch: 25% → 100%)
- Add daemon formatting helper tests (formatDaemonDuration, formatDaemonRelativeTime: 0% → 100%)
- Add auto-import test cases (checkAndAutoImport: 27.8% → 44.4%)
- Add compact eligibility test
Overall coverage: 47.9% → 48.3%
cmd/bd coverage: 20.5% → 21.0%
New test files:
- cmd/bd/autoflush_version_test.go (5 test functions)
- cmd/bd/daemons_test.go (2 test functions)
All tests passing.
Amp-Thread-ID: https://ampcode.com/threads/T-29fa5379-fd71-4f75-bc4f-272beff96c8f
Co-authored-by: Amp <amp@ampcode.com >
2025-10-31 18:40:32 -07:00
Steve Yegge
4d2efdc7b3
test: add autoimport and utility function tests
...
- Test checkAndAutoImport with various conditions
- Test findBeadsDir and findBeadsDir in parent
- Test checkGitForIssues edge cases
- Test boolToFlag utility function
- cmd/bd coverage: 20.4% -> 20.5%
2025-10-31 18:04:29 -07:00