stretchr/testify
Some data may be outdated — see provenance labels.
A toolkit with common assertions and mocks that plays nicely with the standard library observed · 2026-09-30
Health v2 · maintenance only
87/100
- Activity 96
- Release rhythm 67
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: 138.0
- age_days: 5117
- days_rel: 62
- days_push: 26
- n_releases_24m: 5
Adoption not part of the score
26219 stars · 1918 forks observed · 2026-09-30
What it is AI-extracted, prompt v1, taxonomy v1, 2026-10-12, confidence 0.99
Testify is a Go library that provides a rich set of testing utilities, including easy-to-use assertions, mocking support, and test suite management. It integrates seamlessly with Go's standard testing package.
Use cases
- write readable unit tests with fluent assertions in Go
- create mock objects to verify interactions in Go code
- organize test setup and teardown using test suites
- replace repetitive test boilerplate with helper functions
- validate error handling and edge cases in Go applications
When to choose
- You need a mature, widely adopted testing toolkit for Go projects
- You want built‑in support for assertions and mocks without pulling in many dependencies
- Your codebase already uses Go's standard testing framework and you need extensions
When to avoid
- You are working in a language other than Go
- You require advanced property‑based testing or fuzzing beyond basic assertions
- You need a testing framework that integrates tightly with non‑Go build systems
Facets
library · maturity active
testing mocking developer-tools testing go cross-platform go testify assertions mock test-suite
6 sources
- readme: https://github.com/stretchr/testify · fetched 2026-09-30 · 3fcc0055110a
- homepage: https://pkg.go.dev/github.com/stretchr/testify · fetched 2026-09-28 · 0cc075661925
- site_page: https://pkg.go.dev/about · fetched 2026-09-28 · 757852027879
- site_page: https://pkg.go.dev/github.com/stretchr/testify/suite · fetched 2026-09-28 · b644380b7454
- site_page: https://pkg.go.dev/github.com/stretchr/testify/mock · fetched 2026-09-28 · e25e96ba9f5c
- site_page: https://go.dev/project · fetched 2026-09-28 · d5ca00bb378b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| stretchr/testify | main | 87 |
For agents
markdown · JSON · MCP: product_card(name="stretchr/testify")
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem