mockery
The premium Open Source alternative to GoMock
🎯 Best for:Go developers using dependency injection who need to mock complex interfaces.
What is mockery?
Replaces manual mock implementation with automated code generation for Go interfaces. It streamlines unit testing by creating type-safe mock objects that integrate with the testify/mock package.
Tech Stack
GoTesting & QA
Why mockery?
- • Eliminates boilerplate code
- • Type-safe mock objects
- • Easy CI/CD integration
Limitations
- • Generated code bloat
- • Requires interface-based design
- • Dependency on testify
3/5/2026
Last Update
451
Forks
51
Issues
BSD-3-Clause
License
Financial Leak Detected
Stop the "SaaS Tax"
Your team could be burning cash. Switching to mockery instantly boosts your runway.
Competitor Cost
-$1,440
/ year (est. based on GoMock)
Self-Hosted
$0
/ year
Team Size10 Users
150+
SAVE 100%