Open
Description
Hi,
I like the simplicity of this package and the fact that it stays close to the standard library.
However, is there any reason for not passing the testing object to the setup/teardown methods? E.g.:
type TestSuite interface {
SetUpSuite(t *testing.T)
TearDownSuite(t *testing.T)
SetUp(t *testing.T)
TearDown(t *testing.T)
}
Otherwise a I don't see a way for a test setup to fail cleanly (think integration tests which for example try to connect to a database during setup).
Alternatively, or even additionally, the above methods could return an error, and gosuite.Run would fail the test if not nil.
Thanks
Metadata
Assignees
Labels
No labels
Activity