Settings

Theme

Ask HN: Favorite Go testing libraries/tools?

3 points by alwaysagopher 10 years ago · 0 comments · 1 min read


I've seen things like:

go-supertest - https://github.com/franela/go-supertest

and

gomega - https://github.com/onsi/gomega

And while appealing in some ways, I always end up at the same place:

In many instances these tools seem to go against the principles of idiomatic go.

I realize I could be totally wrong, and I also see how being diligent about state is theoretically useful for efficiently identifying/exposing points of failure.

but many of the go unit-tests I end up writing take a fair amount of effort for setting up the proper state. And then everything else is pretty much a 1-3 liner to check for failures.

If you look at http://onsi.github.io/ginkgo/, I think you'll see what I mean. It's shoe-horned in there.

SO, what do you all do that you think is amazingly awesome or at least best-practices beyond golang.org recommendations to code as effectively as possible?

Thanks! AaG

No comments yet.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection