Skip to content

Commit

Permalink
Consistent ordering of tests
Browse files Browse the repository at this point in the history
  • Loading branch information
arp242 committed Oct 10, 2023
1 parent 8183e77 commit 3796541
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,10 @@ func (r Runner) Run() (Tests, error) {
}
wg.Wait()

sort.Slice(tests.Tests, func(i, j int) bool {
return tests.Tests[i].Path < tests.Tests[j].Path
})

return tests, nil
}

Expand Down

0 comments on commit 3796541

Please sign in to comment.