Skip to content

Commit

Permalink
Exclude yaml files with no test cases from report output
Browse files Browse the repository at this point in the history
  • Loading branch information
DerrickGold committed Nov 16, 2021
1 parent c926b99 commit ed3787d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions multisuite.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ func (t *MultiTestSuite) LoadTests(testDir string, fixtures string) error {
if err != nil {
return err
}
if len(suite.Tests) == 0 {
return nil
}

if suite != nil {
t.Suites[path] = suite
Expand Down

0 comments on commit ed3787d

Please sign in to comment.