Skip to content

Commit

Permalink
lint(suite): add t.Helper()
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicbarnes committed Sep 19, 2024
1 parent 2c52bb4 commit 63812a4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ func (s *TestSuite) Run(t T) {

for _, testCase := range testCases {
t.Run(testCase.Name, func(t *testing.T) {
t.Helper()

if hasOnly && !testCase.Only {
t.Skip("skipping test because it is excluded by only")
} else if testCase.Skip {
Expand Down

0 comments on commit 63812a4

Please sign in to comment.