Go’s integrated tools

1 min read
A few weeks ago, I was pleasantly surprised to find out that Go has both test and test coverage commands as part of its built-in tooling. Today I found out about race condition detection as well!
go test # Compiles and runs the local tests
go test -cover # Runs the local tests and generates a basic test coverage report
go test -race # Runs all tests and detects race conditions on go routines
These are great points in favour of choosing Go if you are attempting to build systems with as few dependencies as possible.
0
Subscribe to my newsletter
Read articles from Filipe Mendes directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
