|Project Name||Stars||Downloads||Repos Using This||Packages Using This||Most Recent Commit||Total Releases||Latest Release||Open Issues||License||Language|
|Testify||20,665||14,688||70,426||3 days ago||42||May 30, 2023||427||mit||Go|
|A toolkit with common assertions and mocks that plays nicely with the standard library|
|Mockito||14,223||38,950||13,120||10 hours ago||343||June 18, 2023||358||mit||Java|
|Most popular Mocking framework for unit tests written in Java|
|Msw||13,230||1,723||a day ago||176||July 20, 2023||99||mit||TypeScript|
|Seamless REST/GraphQL API mocking library for browser and Node.js.|
|Mockery||10,466||112,379||18,261||24 days ago||40||July 19, 2023||106||bsd-3-clause||PHP|
|Mockery is a simple yet flexible PHP mock object framework for use in unit testing with PHPUnit, PHPSpec or any other testing framework. Its core goal is to offer a test double framework with a succinct API capable of clearly defining all possible object operations and interactions using a human readable Domain Specific Language (DSL).|
|Mock||9,057||4,533||9,424||2 months ago||55||May 12, 2022||85||apache-2.0||Go|
|GoMock is a mocking framework for the Go programming language.|
|Go Sqlmock||5,425||1,336||a month ago||21||June 28, 2020||75||other||Go|
|Sql mock driver for golang to test database interactions|
|Mockoon||5,394||6||6 hours ago||45||July 24, 2023||71||other||TypeScript|
|Mockoon is the easiest and quickest way to run mock APIs locally. No remote deployment, no account required, open source.|
|Mockk||5,091||5 days ago||254||apache-2.0||Kotlin|
|mocking library for Kotlin|
|Mockery||5,051||277||3 days ago||134||August 04, 2023||37||bsd-3-clause||Go|
|A mock code autogenerator for Go|
|Ohhttpstubs||4,975||1,238||4 months ago||60||December 02, 2020||53||mit||Objective-C|
|Stub your network requests easily! Test your apps with fake network data and custom response time, response code and headers!|
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 out GitHub Pages site.
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
$ task test task: [test] go test -v -coverprofile=coverage.txt ./...
v1 is the original version of the software, and is no longer supported.
mockery is currently in v2, which originally included cosmetic and configuration improvements over v1, but also implements a number of quality-of-life additions.
v3 will include a ground-up overhaul of the entire codebase and will completely change how mockery works internally and externally. The highlights of the project are:
mockerycurrently iterates over every file in a project and calls
package.Loadon each one, which is time-consuming. Moving towards a model where the entire package is loaded at once will dramatically reduce runtime, and will simplify logic. Additionally, supporting only a single mode of operation (package mode) will greatly increase the intuitiveness of the software.
v3will be entirely driven by configuration, meaning: