Skip to content

testsuite v1.1.0 - Nested suites

Choose a tag to compare

@berlin-ab berlin-ab released this 27 Aug 17:04
· 21 commits to main since this release

v1.1.0 provides the ability to specify nested suites

func TestExample(t *testing.T) {
	testsuite.New(t, "defines a test suite with setup/teardown", func(s *testsuite.S) {
		s.When("in a context", func(s *testsuite.S) {
			s.Run("it does something in this context", func(t *testing.T) {
				// defines a test using standard *testing.T
			})
		})
	})
}