Thomas McGoey-Smith

Running Just a Single Test in Go

I needed to run just a single test. Luckily Go has a nice little flag with go test.

Just run: go test TestName

(This is technically a regex i.e. TestName* so it will run any tests that match)

For more, checkout this Stack Overflow Answer.

@tamcgoey on Jul 14, 2015

Enjoyed the article? Subscribe to my newsletter for more.

© Thomas McGoey-Smith (2014-2018). RSS.