Configure unit tests and coverage report #11
Labels
Type: New Feature ➕
Introduction of a completely new addition to the codebase
Type: Testing 🧪
Add testing or improving existing testing of a file, feature, or codebase
Description
Go's built-in support for unit testing makes it easier to test as you go. The
testing
package provides the tools we need to write unit tests and thego test
command runs tests.Tips
-race
to enable the built-in data race detector.-v
to log all tests as they are run. Also print all text fromLog
andLogf
calls even if the test succeeds.-cover
to enable coverage analysis.The text was updated successfully, but these errors were encountered: