macOS
brew install mockerylocal Homebrew formula metadata
sudo port install mockeryMacPorts ports tree · devel/mockery/Portfile · source: api.github.com
brew
Mock code autogenerator for Golang. Version 3.7.1 via Homebrew; verified 2026-06-15.
install
brew install mockerylocal Homebrew formula metadata
sudo port install mockeryMacPorts ports tree · devel/mockery/Portfile · source: api.github.com
sudo apt install mockeryDebian stable package indexes · mockery · source: deb.debian.org
sudo zypper install mockeryopenSUSE Tumbleweed package metadata · mockery · source: download.opensuse.org
scoop install main/mockeryScoop official bucket manifest trees · bucket/mockery.json · source: api.github.com
overview
Mock code autogenerator for Golang
history
mockery is a Go code generator from the vektra GitHub organization for creating mock implementations of Go interfaces. Its repository was created in 2014 and the README frames the original use case around generating mocks that work with `stretchr/testify/mock`, removing repetitive hand-written mock code in Go tests.
The project documentation broadens that role into a small code-generation framework: mockery inspects Go source, emits implementations for interfaces, supports multiple mock styles, and lets users provide custom templates rendered with typed interface metadata. Configuration via `.mockery.yaml` lets projects select packages and interfaces, which makes it suitable for repeatable generation in CI or local test workflows.
Within package managers, mockery fills the Go-testing generator niche alongside tools such as mockgen and moq. Homebrew packages it as `mockery`, and package records also list Debian, Ubuntu, MacPorts, Scoop, and zypper, matching its role as a developer CLI installed outside an individual Go module when teams want consistent generated mocks across repositories.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
.mockery.yml.mockery.yamlexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
mockery | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/vektra/mockery
install metadata
| Package key | brew:mockery |
|---|---|
| Version | 3.7.1 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/mockery |
| Homepage | https://vektra.github.io/mockery/ |
| Repository | https://github.com/vektra/mockery |
| Upstream docs | https://github.com/vektra/mockery#readme |
| License | BSD-3-Clause |
| Source archive | https://github.com/vektra/mockery/archive/refs/tags/v3.7.1.tar.gz |
| Last updated | 2026-06-15T10:20:21-04:00 |
| Pulse | updated |
| Build dependencies | go |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | mockery |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
mockery 2.15.0-1+b12
mock code autogenerator for Golang
https://github.com/vektra/mockery
sudo apt install mockerymockery 2.15.0-1build1
mock code autogenerator for Golang
https://github.com/vektra/mockery
sudo apt install mockerymockery 2.53.5-1.4
A mock code autogenerator for Go
https://github.com/vektra/mockery
sudo zypper install mockerymockery
sudo port install mockerymain/mockery
scoop install main/mockerysource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.