Introduce wrapper methods for testing.TLog and Logf methods.
Changes
Add suite.Log method
Add suite.Logf method
Motivation
I frequently use t.Log and t.Logf to add verbose log to my tests, usually while I'm still creating them. Therefore, I find myself often writting the following snippet:
func (s *mySuite) TestA() {
s.T().Logf(...)
}
Example usage
For that reason, it would be a nice improvement if the suite struct implemented wrappers to these functions, so I could write instead:
Summary
Introduce wrapper methods for
testing.T
Log and Logf methods.Changes
suite.Log
methodsuite.Logf
methodMotivation
I frequently use
t.Log
andt.Logf
to add verbose log to my tests, usually while I'm still creating them. Therefore, I find myself often writting the following snippet:Example usage
For that reason, it would be a nice improvement if the suite struct implemented wrappers to these functions, so I could write instead:
Related issues
None.