Skip to content

Instantly share code, notes, and snippets.

@ormanli
Created December 21, 2020 13:24
Show Gist options
  • Save ormanli/4dec6b32f38607de0410016e87542ef6 to your computer and use it in GitHub Desktop.
Save ormanli/4dec6b32f38607de0410016e87542ef6 to your computer and use it in GitHub Desktop.
Testify Suite Live Template
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")
}
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