#Best Go Testing Frameworks
6 messages · Page 1 of 1 (latest)
No matter what framework you end up using, I suggest you get comfortable with the stdlib testing stuff first.
I only very rarely need to step outside stdlib for testing, and when I do, what I use depends on why I had to step outside stdlib.
My needs are usually pretty basic but I usually use gotests in vscode to generate table driven tests and tweak from there
I use testify, but that’s because the stdlib is positively anemic with respect to assertions, particularly in regards to compound types. Any assertion module works, testify is popular but there are others that work just as well.
I don’t want to repeat the logic of assert.ElementsMatch(…) over and over again, for example.