Skip to content

Commit 35c4d8a

Browse files
authored
Merge pull request #142 from greg-dennis/patch-1
go-junit-report_test should fail if no files found
2 parents d6bf223 + 39473dc commit 35c4d8a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/gojunitreport/go-junit-report_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ func TestRun(t *testing.T) {
3333
if err != nil {
3434
t.Fatalf("error finding files in testdata: %v", err)
3535
}
36+
if len(files) == 0 {
37+
t.Fatalf("no files found in %s", testDataDir)
38+
}
3639

3740
for _, file := range files {
3841
if !matchRegex.MatchString(file) {

0 commit comments

Comments
 (0)