A mock code autogenerator for Go
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 is found at our GitHub Pages site.
taskfile.dev is used for build tasks. Initialize all go build tools:
go mod download -xYou can run any of the steps listed in Taskfile.yml:
$ task test
task: [test] go test -v -coverprofile=coverage.txt ./...v3: adds unused import in matryer template with template.skip-ensure
v2.53.7 release is incorrectly marked as latest
Imports in mockery generated files do not comply with goimports standard when package name does not match directoryname
Feature Request: A Wait() method for waiting for all expected calls
Simplify embedded field access in generated mock constructors
Reintroduce CLI args; make config file optional
Dockerhub `latest` tag does not point to latest.
Feature request: pre-commit hooks
Add ability to customize `$constructorName` in testify template
Otel TracerProvider Embedding hard to auto-mock.