Optimize test suite with testing.Short() guards

- Add Short() guards to slow CLI tests (2-4s each)
- Add Short() guards to slow API/integration tests (3-11s)
- Add Short() guard to hanging daemon discovery test (29s timeout)
- Short test suite now runs in ~6s (down from 5+ minutes)

Run 'go test -short ./...' for fast iteration
Run 'go test ./...' for full coverage

Closes: bd-iov0
This commit is contained in:
Steve Yegge
2025-11-06 17:31:15 -08:00
parent 5fff4edcb6
commit 11fa142539
8 changed files with 63 additions and 0 deletions

View File

@@ -11,6 +11,9 @@ import (
)
func TestImportWithExternalRef(t *testing.T) {
if testing.Short() {
t.Skip("skipping slow import test in short mode")
}
ctx := context.Background()
tmpDir := t.TempDir()
dbPath := filepath.Join(tmpDir, "test.db")