# onsi/gomega

Ginkgo's Preferred Matcher Library

Repository: https://github.com/onsi/gomega
Canonical: https://ross.abutalabs.com/products/gomega
Homepage: http://onsi.github.io/gomega/
Language: Go
License: MIT
License Family: permissive
Last push: 2026-08-26T02:19:58+00:00

## Health v2 (maintenance only)
Score: 96/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 90, longevity 100
- inputs: {"age_days": 4758, "days_push": 8, "days_rel": 71, "gap_med": 22.5, "n_releases_24m": 17}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2352, forks 305 (observed 2026-08-28T04:06:40.421185+00:00)

## What it is
Gomega is a matcher/assertion library for Go, best paired with the Ginkgo BDD test framework but usable with standard Go tests. It provides a rich catalog of matchers plus async helpers like Eventually/Consistently and sub-libraries such as gstruct, ghttp, gexec, gbytes, gleak, and gmeasure.

## Use cases
- write expressive assertions in Go tests
- use BDD-style matchers with Ginkgo
- assert on asynchronous behavior with Eventually
- test HTTP handlers with ghttp
- detect goroutine leaks in tests
- measure code performance in test suites

## When to choose
- you use Ginkgo or want idiomatic, readable assertions in Go
- you need asynchronous or polling assertions
- you want structured matchers for JSON/maps with gstruct

## When to avoid
- you prefer plain testify or stdlib testing assertions
- your project is not written in Go

## Facets
- artifact type: library
- maturity: stable
- function: testing, e2e-testing
- domain: testing, developer-tools
- platform: go, cross-platform
- tags: assertion-library, matcher-library, bdd, ginkgo, unit-testing, async-assertions

## Member repositories
- onsi/gomega (main) score 96

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:40.421185+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:36:53.029472+00:00, confidence not recorded.
  - readme: https://github.com/onsi/gomega (fetched 2026-08-28T04:06:40.421185+00:00, sha bbabf54c5b68)
  - homepage: http://onsi.github.io/gomega/ (fetched 2026-08-29T10:17:15.289852+00:00, sha ea6d199db5fe)
- Data as of 2026-08-30T08:39:29.467469+00:00.
