Skip to content

Commit

Permalink
better test output
Browse files Browse the repository at this point in the history
  • Loading branch information
lionello committed Jun 26, 2024
1 parent b123b17 commit 3a242fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pkg/cli/compose/loader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,15 @@ func diff(actualRaw, goldenRaw string) error {
func testRunCompose(t *testing.T, f func(t *testing.T, path string)) {
t.Helper()

composeRegex := regexp.MustCompile(`^(docker-)?compose.ya?ml$`)
composeRegex := regexp.MustCompile(`(?i)^(docker-)?compose.ya?ml$`)
err := filepath.WalkDir("../../../tests", func(path string, d os.DirEntry, err error) error {
if err != nil || d.IsDir() || !composeRegex.MatchString(d.Name()) {
return err
}

t.Run(path, func(t *testing.T) {
t.Helper()
t.Log(path)
f(t, path)
})
return nil
Expand Down

0 comments on commit 3a242fe

Please sign in to comment.