Created
December 21, 2020 13:24
-
-
Save ormanli/4dec6b32f38607de0410016e87542ef6 to your computer and use it in GitHub Desktop.
Testify Suite Live Template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type $SUITE$TestSuite struct { | |
suite.Suite | |
} | |
func Test$SUITE$TestSuite(t *testing.T) { | |
suite.Run(t, new($SUITE$TestSuite)) | |
} | |
func (s *$SUITE$TestSuite) SetupSuite() { | |
panic("implement me") | |
} | |
func (s *$SUITE$TestSuite) TearDownSuite() { | |
panic("implement me") | |
} | |
func (s *$SUITE$TestSuite) SetupTest() { | |
panic("implement me") | |
} | |
func (s *$SUITE$TestSuite) TearDownTest() { | |
panic("implement me") | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func (s *$SUITE$) Test_$CASENAME$() { | |
panic("implement me") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment