Created
June 8, 2014 19:00
-
-
Save canthefason/979ff4e515bc397615bd to your computer and use it in GitHub Desktop.
How to run only a given test in go
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
# Compile the test binary as pkg.test | |
go test -c | |
# Run the given test | |
./pkg.test -test.run=TestSomething | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment