A mock code autogenerator for Go
Last updated Jul 6, 2026
7.1k
Stars
454
Forks
53
Issues
+8
Stars/day
Attention Score
92
Language breakdown
No language data available.
▸ Files
click to expand
README
mockery provides the ability to easily generate mocks for Golang interfaces using the stretchr/testify/mock package. It removes the boilerplate coding required to use mocks.
Documentation
Documentation is found at our GitHub Pages site.
Development
taskfile.dev is used for build tasks. Initialize all go build tools:
go mod download -x
You can run any of the steps listed in Taskfile.yml:
$ task test
task: [test] go test -v -coverprofile=coverage.txt ./...
Stargazers
🔗 More in this category