I needed to run just a single test. Luckily Go has a nice little flag with
go test -test.run TestName
(This is technically a regex i.e. TestName* so it will run any tests that match)
For more, checkout this Stack Overflow Answer.
Enjoyed the article? Subscribe to my newsletter for more.
© Thomas McGoey-Smith (2014-2018). RSS.