Running testifylint on a large codebase at work I noticed that suits are not consistently named. It would be useful if testifylint detected this and enforced usage of either (suite *TestSuite) or (s *TestSuite).
Example of inconsistent naming:
// example1_test.go
type ExampleTestSuite1 struct {
suite.Suite
}
func (suite *ExampleTestSuite1) TestExample() {
}
// example2_test.go
type ExampleTestSuite2 struct {
suite.Suite
}
func (s *ExampleTestSuite2) TestExample() {
}
Running
testifylint
on a large codebase at work I noticed that suits are not consistently named. It would be useful iftestifylint
detected this and enforced usage of either(suite *TestSuite)
or(s *TestSuite)
.Example of inconsistent naming: