Gomega provides support for versions of Go

Gomega provides support for versions of Go

What is Gomega?

Gomega is a matcher/assertion library. It is best paired with the Ginkgo BDD test framework, but can be adapted for use in other contexts too.

Instead of getting all of Gomega and it’s dependency tree, you can use the go command to get the dependencies as needed. When a Gomega assertion fails, Gomega calls a GomegaFailHandler. This is a function that you must provide using gomega.RegisterFailHandler(). Though Gomega is tailored to work best with Ginkgo it is easy to use Gomega with Golang’s XUnit style tests.

Read more…

Rating:

comments powered by Disqus