5 // TestingSuite can store and return the current *testing.T context
6 // generated by 'go test'.
7 type TestingSuite interface {
12 // SetupAllSuite has a SetupSuite method, which will run before the
13 // tests in the suite are run.
14 type SetupAllSuite interface {
18 // SetupTestSuite has a SetupTest method, which will run before each
20 type SetupTestSuite interface {
24 // TearDownAllSuite has a TearDownSuite method, which will run after
25 // all the tests in the suite have been run.
26 type TearDownAllSuite interface {
30 // TearDownTestSuite has a TearDownTest method, which will run after
31 // each test in the suite.
32 type TearDownTestSuite interface {
36 // BeforeTest has a function to be executed right before the test
37 // starts and receives the suite and test names as input
38 type BeforeTest interface {
39 BeforeTest(suiteName, testName string)
42 // AfterTest has a function to be executed right after the test
43 // finishes and receives the suite and test names as input
44 type AfterTest interface {
45 AfterTest(suiteName, testName string)