mockery

mockery

A mock code autogenerator for Go

github Testing Go free
★ 7,094Stars
455Forks
7,094Watchers
2Views
May 2026Last Update

About mockery

A mock code autogenerator for Go

What you should know about mockery

mockery — A mock code autogenerator for Go. It is categorized under Testing and primarily built with Go. The project has gathered 7,094 stars and 455 forks on GitHub, indicating a healthy and active community.

Pricing & licensing: This tool is offered free of charge , released under the BSD-3-Clause license. The source code is openly available on GitHub, allowing engineers to audit, contribute, or fork as needed.

Use cases & topics: mockery is associated with the following topics: generation, generator, go, golang, mock, mockgen, mocking, mocks. Teams working in generation / generator / go spaces typically evaluate this kind of tool when scoping new architecture decisions or replacing legacy components.

Getting started: Check out the official GitHub repository for installation steps, configuration examples, and the latest release notes. Most teams hit value within the first week if the tool aligns with their existing Testing stack.

Editor's note from Fanny Engriana (Founder, Wardigi Digital Agency): when evaluating tools in the Testing category for our agency clients, we look at three things first — license clarity, community size, and active maintenance. Tools with explicit license terms and ongoing commits tend to remain viable across multi-year projects.

Related Tools