Go package comparison
Testify vs mockery
Compare two Go packages using the same scoring model: maintenance, adoption, security, maturity, developer experience, and data confidence.
Quick Decision
The current weighted model does not produce a clear winner.
Testify
Module testify is a set of packages that provide many tools for testifying that your code will behave as you intend.
mockery
A mock code autogenerator for Go
Metric Table
side by side| Metric | Testify | mockery | Lead |
|---|---|---|---|
| Health | 95 | 95 | Tie |
| Maintenance | 95 | 95 | Tie |
| Adoption | 100 | 100 | Tie |
| Security | 92 | 92 | Tie |
| Maturity | 100 | 100 | Tie |
| Imported by | 15 | 8 | Testify |
| Stars | 26.0K | 7.1K | Testify |
| Last activity | 10 days ago | 27 days ago | Review dates |
| Known vuln records | 0 | 0 | Tie |
Choose Testify if
You prefer its current score profile and the package fits your framework or API style.
Its maintenance, adoption, and security signals match your project risk tolerance.
Choose mockery if
You prefer its current score profile and the package fits your framework or API style.
Its maintenance, adoption, and security signals match your project risk tolerance.