vektra / mockery

A mock code autogenerator for Go

Home Page:https://vektra.github.io/mockery/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mockery

Release go.dev reference GitHub go.mod Go version GitHub release (latest SemVer) Go Report Card codecov

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 out 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

Stargazers over time

About

A mock code autogenerator for Go

https://vektra.github.io/mockery/

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Go 98.7%Language:Shell 1.0%Language:Dockerfile 0.1%Language:HTML 0.1%