3 ms·
This article is too basic and does not introduce anything you'd encounter in a typical Go project. If you want introduction to Go testing I recommend just readi
by karolist 2y ago
This article is too basic and does not introduce anything you'd encounter in a typical Go project. If you want introduction to Go testing I recommend just reading the official docs https://pkg.go.dev/testing https://pkg.go.dev/testing and understanding how to write table driven tests - https://go.dev/wiki/TableDrivenTests https://go.dev/wiki/TableDrivenTests.
Going beyond what's built in, get familiar with https://github.com/stretchr/testify https://github.com/stretchr/testify as that's used a lot.
- rty32 2y agoIndeed. "Test driven development" is too big of a title for setting up such a basic project. And honestly I think a decent ChatGPT prompt will generate a tutorial that is clearer and more concise than this entire article.