-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Buildup/Teardown #19
Comments
I would love to add this to Testify. On 1 Aug 2013, at 14:36, nelsam notifications@github.com wrote:
|
Done |
Many testing libraries provide some method of defining common building up and tearing down functionality for the testing environment. I'm not sure if this type of functionality is something that would fit with the goals of testify, but it's a fairly common type of functionality that simplifies code for a number of use cases.
An example of a common case:
The "go test" command doesn't provide anything like this, so most testing frameworks get around this by doing something like the following:
Here are two example testing libraries in Go that support buildup and teardown methods, using the "go test" tool:
http://labix.org/gocheck (See: http://labix.org/gocheck#fixtures for buildup and teardown)
https://github.com/remogatto/prettytest (See: https://github.com/remogatto/prettytest/blob/master/prettytest_test.go#L102-120 for buildup and teardown)
The text was updated successfully, but these errors were encountered: