Running All Go Tests in a Project

August 16, 2014

I’ve been using GoConvey to run my Go test suite, but kept the *_test* files in my main package, because I couldn’t figure out how to run them all at once from the shell using go test. Yeah, I could have done it in three lines of bash, but that’s cheating.

This weekend I finally found go test ./... which runs all tests for all packages. About time. Test hierarchy fixed!

Tags: golang, testing
comments powered by Disqus