feat: return first of candidates if no testdir that exists resolved

This commit is contained in:
2026-03-16 21:48:01 +00:00
parent 8968af90cc
commit 94bd14f467
2 changed files with 35 additions and 28 deletions
+5 -1
View File
@@ -47,7 +47,11 @@ func resolveTestDirFromRoot(root string) (string, error) {
}
}
return "", errors.New("test_dir not configured and none of the expected test directories exist")
if len(candidates) == 0 {
return "", errors.New("no test directory candidates available")
}
return candidates[0], nil
}
// returns the git root if in a git repo else current pwd