mockery

A mock code autogenerator for Go

BSD-3-CLAUSE License

Downloads
2K
Stars
6K
Committers
129

mockery

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

Package Rankings
Top 0.71% on Proxy.golang.org
Top 13.83% on Formulae.brew.sh
Badges
Extracted from project README
Release go.dev reference Go Report Card codecov Stargazers over time