mockery
« Back to VersTracker
Description:
Mock code autogenerator for Golang
Type: Formula  |  Latest Version: 3.6.1@0  |  Tracked Since: Nov 17, 2025
Links: Homepage  |  GitHub  |  Docs  |  formulae.brew.sh
Stars: 6,924  |  Forks: 449  |  Language: Go  |  Category: Developer tools
Tags: go golang testing mocking code-generation
Install: brew install mockery
About:
Mockery is a Go library that automatically generates mock implementations of Go interfaces. It simplifies unit testing by allowing developers to create mock objects that simulate the behavior of real dependencies, enabling isolated and controlled testing environments. Its primary value lies in reducing boilerplate code and improving test reliability.
Key Features:
  • Generates mock implementations for Go interfaces
  • Supports configuration via comments and configuration files
  • Can generate mocks for entire packages recursively
  • Integrates with the Go `test` command and popular testing frameworks
  • Provides version management for generated mocks
Use Cases:
  • Unit testing Go applications by mocking external dependencies
  • Test-driven development (TDD) workflows in Go projects
Alternatives:
  • testify/mock – Part of the testify suite; more manual, less code generation.
  • golang/mock – Official Go mock generator; uses interface-based generation like mockery.
Version History
Detected Version Rev Change Commit
Dec 26, 2025 5:43pm 3.6.1 0 VERSION_BUMP 0b776cc7
Nov 17, 2025 5:20pm 0 VERSION_BUMP 8fd6b04e
Oct 10, 2025 3:12pm 0 VERSION_BUMP 20bb3a23
Sep 15, 2025 11:40pm 0 VERSION_BUMP e9e9e547
Jan 14, 2025 8:02am 0 VERSION_BUMP d40b5c68
Dec 30, 2024 11:36pm 0 VERSION_BUMP 5b6cc609
Dec 30, 2024 11:02pm 0 VERSION_BUMP c1de1b74
Dec 4, 2024 5:15pm 0 VERSION_BUMP c75217f4
Nov 27, 2024 2:54am 0 VERSION_BUMP bbe87bba
Nov 19, 2024 6:56am 0 VERSION_BUMP a050b565
Nov 14, 2024 8:07pm 0 VERSION_BUMP af98f561
Oct 2, 2024 5:14pm 0 VERSION_BUMP 6fe10a6a
Oct 2, 2024 3:53pm 0 VERSION_BUMP 8de925c2
Sep 17, 2024 8:29am 0 VERSION_BUMP b6a3796a
Sep 17, 2024 6:49am 0 VERSION_BUMP c1050570
Aug 21, 2024 6:23am 0 VERSION_BUMP 000d0eb0
Aug 21, 2024 12:46am 0 VERSION_BUMP 16202b6c
Apr 29, 2024 9:34pm 0 VERSION_BUMP 2bf5d445
Apr 20, 2024 6:35am 0 VERSION_BUMP 7d1e744f
Oct 9, 2023 10:21pm 0 VERSION_BUMP 70d2f013
Oct 9, 2023 3:48pm 0 VERSION_BUMP 7ee3356b
Oct 6, 2023 3:37am 0 VERSION_BUMP e63bfac9
Sep 28, 2023 5:05am 0 VERSION_BUMP e57b47e5
Sep 26, 2023 12:47pm 0 VERSION_BUMP a4c9e457
Aug 21, 2023 11:37pm 0 VERSION_BUMP ac9d01f8
Aug 10, 2023 2:39am 0 VERSION_BUMP 6c871080
Aug 10, 2023 1:43am 0 VERSION_BUMP 847319fd
May 24, 2023 2:02pm 0 VERSION_BUMP 0adc655e
May 23, 2023 2:10pm 0 VERSION_BUMP 84e3b5a1
May 14, 2023 5:20am 0 VERSION_BUMP 192d7ee6
Apr 18, 2023 2:17am 0 VERSION_BUMP 47955fb4
Apr 11, 2023 8:05am 0 VERSION_BUMP 3feec241
Mar 20, 2023 8:06am 0 VERSION_BUMP 6a224268
Mar 20, 2023 8:06am 0 VERSION_BUMP 970cff36