-
-
Save clairew/a1b6bb164120bb36437f628274ccc608 to your computer and use it in GitHub Desktop.
Go Test Runner Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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