Skip to content

Instantly share code, notes, and snippets.

@canthefason
Created June 8, 2014 19:00
Show Gist options
  • Save canthefason/979ff4e515bc397615bd to your computer and use it in GitHub Desktop.
Save canthefason/979ff4e515bc397615bd to your computer and use it in GitHub Desktop.
How to run only a given test in go
# 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