stretchr/testify
A toolkit with common assertions and mocks that plays nicely with the standard library observed · 2026-08-28
Health v2 · maintenance only
90/100
- Activity 99
- Release rhythm 74
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 138.0
- age_days: 5069
- days_rel: 14
- days_push: 9
- n_releases_24m: 5
Adoption not part of the score
26185 stars · 1914 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Testify is a Go toolkit providing assertion helpers, mocking, and test suite interfaces that integrate with the standard library's testing package. It is the de facto standard testing companion library for Go.
Use cases
- assert values in go tests with readable failure messages
- mock interfaces and verify method calls in go
- run setup and teardown around go test suites
- write table-driven tests with expressive assertions
- replace verbose if-based error checks in go tests
When to choose
- you write Go tests and want readable assertions beyond the standard library
- you need lightweight mocking without code generation
- you want structured test suites with setup/teardown hooks
When to avoid
- you prefer stdlib-only testing with no external dependencies
- you need parallel test execution in suites (suite package does not support it)
- you want a v2 with new features - this repo is frozen at v1 with no breaking changes
Facets
library · maturity stable
testing mocking testing developer-tools programming-languages go cross-platform assertions test-suites tdd go-testing
6 sources
- readme: https://github.com/stretchr/testify · fetched 2026-08-28 · 4e54fe34ddd7
- homepage: https://pkg.go.dev/github.com/stretchr/testify · fetched 2026-08-29 · 0cc075661925
- site_page: https://pkg.go.dev/about · fetched 2026-08-29 · 757852027879
- site_page: https://pkg.go.dev/github.com/stretchr/testify/suite · fetched 2026-08-29 · b644380b7454
- site_page: https://pkg.go.dev/github.com/stretchr/testify/mock · fetched 2026-08-29 · e25e96ba9f5c
- site_page: https://go.dev/project · fetched 2026-08-29 · d5ca00bb378b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| stretchr/testify | main | 90 |
For agents
markdown · JSON · MCP: product_card(name="stretchr/testify")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem