github.com/onsi/gomega

Gomega

Gomega is the Ginkgo BDD-style testing framework's preferred matcher library.

80

Decision Signals

Health score 80/100, confidence 80/100.

Strong
Maintenance 90
Adoption 69
Security 92
Maturity 62
Developer DX 83
Confidence 80

Install

go get github.com/onsi/gomega

Package Data

updated Jun 11, 2026
Latest versionv1.41.0
Imported by11.8K packages
Stars0
Forks0
Last activity24 days ago
Latest releaseUnknown
LicenseUnknown
Known vuln records0

API Surface

93 symbols
SymbolKindSynopsis
Assertion Type type Assertion = types.Assertion
Expect Function func Expect(actual any, extra ...any) Assertion
ExpectWithOffset Function func ExpectWithOffset(offset int, actual any, extra ...any) Assertion
Ω Function func Ω(actual any, extra ...any) Assertion
AsyncAssertion Type type AsyncAssertion = types.AsyncAssertion
Consistently Function func Consistently(actualOrCtx any, args ...any) AsyncAssertion
ConsistentlyWithOffset Function func ConsistentlyWithOffset(offset int, actualOrCtx any, args ...any) AsyncAssertion
Eventually Function func Eventually(actualOrCtx any, args ...any) AsyncAssertion
EventuallyWithOffset Function func EventuallyWithOffset(offset int, actualOrCtx any, args ...any) AsyncAssertion
Gomega Type type Gomega = types.Gomega
NewGomega Function func NewGomega(fail types.GomegaFailHandler) Gomega
GomegaAssertion Type type GomegaAssertion = types.Assertion

Similar Packages

Go Testing Libraries

#1 Testify

Module testify is a set of packages that provide many tools for testifying that your code will behave as you intend.

Go Testing Libraries 26.0K stars 15 imported-by 100% confidence
95

#2 keploy

Open-source platform for creating safe, isolated production sandboxes for API, integration, and E2E testing.

Go Testing Libraries 17.6K stars 0 imported-by 45% confidence
86

#3 gock

HTTP traffic mocking and testing made easy in Go ༼ʘ̚ل͜ʘ̚༽

Go Testing Libraries 2.2K stars 65 imported-by 95% confidence
80

#4 testcase

Package testcase is an opinionated testing framework.

Go Testing Libraries 130 stars 0 imported-by 65% confidence
71

#5 hoverfly

Lightweight service virtualization/ API simulation / API mocking tool for developers and testers

Go Testing Libraries 0 stars 0 imported-by 60% confidence
59