Skip to content

Commit

Permalink
feat(suite): add TestCase.Assert helper
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicbarnes committed Oct 2, 2024
1 parent 10ac2d3 commit 6beff55
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ func (c TestCase) Load(t T, values ...any) {
}
}

// Assert is a helper for checking and/or saving testdata for this test case.
func (c TestCase) Assert(t T, values ...any) {
Assert(t, c.Dir, values...)
}

// TestSuite defines a collection of tests backed by directories/files on disk.
type TestSuite struct {
// Dir is the location of your test suite.
Expand Down

0 comments on commit 6beff55

Please sign in to comment.