Skip to content

Instantly share code, notes, and snippets.

@clairew clairew/example_test_main.go Secret
Last active Aug 9, 2018

What would you like to do?
Go Test Runner Example
func TestMain(m *testing.M) {
TestSetup() // logic to set up necessary work before running test suite
exitCode := m.Run() // run the tests and keep track of exit code
TestTearDown(exitCode) // teardown logic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.