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:
@@ -219,6 +219,9 @@ func TestDiscoverDaemons_Registry(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestDiscoverDaemons_Legacy(t *testing.T) {
|
||||
if testing.Short() {
|
||||
t.Skip("skipping slow daemon discovery test in short mode")
|
||||
}
|
||||
tmpDir := t.TempDir()
|
||||
beadsDir := filepath.Join(tmpDir, ".beads")
|
||||
os.MkdirAll(beadsDir, 0755)
|
||||
|
||||
Reference in New Issue
Block a user