Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Tags
  3. Mocking

Mocking

86 projects

Showing 36 of 86 projects

Google Mock
Google MockC++

Google's C++ testing and mocking framework for unit testing with xUnit architecture and rich assertion capabilities.

#unit-testing#death-tests#c-plus-plus
Stars38.9k
Forks10.8k
Last commit12 hours ago
googletest
googletestC++

Google's C++ testing and mocking framework based on xUnit architecture for unit testing.

#unit-testing#death-tests#c-plus-plus
Stars38.9k
Forks10.8k
Last commit12 hours ago
Testify
TestifyGo

A Go toolkit providing common assertions, mocking, and test suite functionality that integrates seamlessly with the standard library.

#unit-testing#testify#test-suites
Stars26.1k
Forks1.8k
Last commit2 days ago
msw
mswTypeScript

API mocking library for JavaScript that intercepts requests at the network level using Service Workers.

#express-routing#network-interception#service-worker
Stars18.1k
Forks614
Last commit1 day ago
Mockito
MockitoJava

The most popular mocking framework for unit tests written in Java.

#software-testing#test-isolation#unit-testing
Stars15.4k
Forks2.7k
Last commit8 days ago
Mockery
MockeryPHP

A simple yet flexible PHP mock object framework for unit testing with a human-readable DSL.

#stubs#phpspec#unit-testing
Stars10.7k
Forks466
Last commit2 months ago
Sourcery
SourcerySwift

A Swift code generator that automates boilerplate code using meta-programming and SwiftSyntax.

#ios#metaprogramming#boilerplate
Stars8.0k
Forks634
Last commit1 month ago
WireMock
WireMockJava

A flexible open-source tool for mocking HTTP services to create stable test and development environments.

#rest#java-library#integration-testing
Stars7.3k
Forks1.5k
Last commit1 day ago
WireMock (.1k)
WireMock (.1k)Java

A flexible open-source tool for mocking HTTP services to create stable test and development environments.

#rest#java-library#integration-testing
Stars7.3k
Forks1.5k
Last commit1 day ago
mockery
mockeryGo

A mock code autogenerator for Go interfaces using testify/mock to eliminate boilerplate.

#generator#mock-generation#unit-testing
Stars7.2k
Forks455
Last commit13 hours ago
OHHTTPStubs
OHHTTPStubsObjective-C

A library for stubbing network requests in iOS/macOS/tvOS apps to test with fake data and simulate network conditions.

#fixtures#ios#unit-testing
Stars5.1k
Forks596
Last commit2 years ago
Prism (.8k)
Prism (.8k)TypeScript

Open-source API mocking and contract testing server for OpenAPI and Postman specifications.

#http-proxy#http-server#swagger
Stars5.0k
Forks413
Last commit6 days ago
PowerMock
PowerMockJava

A Java testing framework that extends EasyMock and Mockito to mock static methods, final classes, private methods, and constructors.

#final-class-mocking#unit-testing#mockito
Stars4.2k
Forks574
Last commit2 years ago
AutoFixture
AutoFixtureC#

An open source .NET library that automates test data generation to minimize unit test setup and maximize maintainability.

#unit-testing#integration-testing#fakeiteasy
Stars3.5k
Forks356
Last commit2 months ago
gomock
gomockGo

A mocking framework for Go that integrates with the testing package to generate and use mock objects.

#gomock#mock-generation#unit-testing
Stars3.4k
Forks174
Last commit7 months ago
Pester
PesterPowerShell

A test and mock framework for PowerShell that enables unit testing, mocking, and code coverage analysis.

#pester-tests#devops#powershell-tests
Stars3.3k
Forks479
Last commit10 hours ago
vcrpy
vcrpyPython

Automatically mock your HTTP interactions to simplify and speed up testing

#http#mocking#python
Stars3.0k
Forks428
Last commit2 days ago
NSubstitute
NSubstituteC#

A friendly .NET mocking library with a succinct syntax that keeps tests focused on intention rather than configuration.

#unit-testing#integration-testing#csharp
Stars3.0k
Forks281
Last commit3 days ago
hoverfly
hoverflyGo

A lightweight open-source API simulation tool for creating realistic mocks of dependent services during development and testing.

#devops#testing-tool#proxy
Stars2.5k
Forks228
Last commit10 days ago
Hoverfly
HoverflyGo

A lightweight open-source API simulation tool for creating realistic mocks of API dependencies during development and testing.

#development-tool#testing-tool#proxy
Stars2.5k
Forks228
Last commit10 days ago
gock
gockGo

Versatile HTTP traffic mocking and testing library for Go, compatible with any net/http based client.

#stubs#net-http#api
Stars2.2k
Forks112
Last commit1 year ago
moq
moqGo

A Go interface mocking tool that generates mock structs from interfaces for unit testing using go generate.

#unit-testing#test-doubles#mocking
Stars2.2k
Forks135
Last commit4 months ago
Microcks (.8k)
Microcks (.8k)Java

A Kubernetes-native open-source platform for API mocking and contract testing from OpenAPI, AsyncAPI, gRPC, GraphQL, and Postman assets.

#event-driven#api#graphql
Stars2.0k
Forks349
Last commit4 days ago
FakeItEasy
FakeItEasyC#

A .NET dynamic fake library for creating all types of fake objects, mocks, and stubs with easy semantics.

#hacktoberfest#unit-testing#testing-library
Stars1.8k
Forks182
Last commit1 month ago
mockall
mockallRust

A powerful mock object library for Rust that generates mock implementations of traits and structs for unit testing.

#software-testing#unit-testing#procedural-macros
Stars1.8k
Forks81
Last commit25 days ago
mockhttp
mockhttpC#

A testing layer for Microsoft's HttpClient library that creates canned responses using a fluent API.

#httpclient#unit-testing#integration-testing
Stars1.8k
Forks90
Last commit21 days ago
Cuckoo
CuckooSwift

A boilerplate-free mocking framework for Swift with a Mockito-like DSL, using compile-time code generation.

#cuckoo#macos-development#matcher
Stars1.7k
Forks199
Last commit1 month ago
DuckRails
DuckRailsRuby

A development tool for quickly mocking API endpoints with static or dynamic responses, delays, and custom headers.

#developer-tools#productivity#development-tool
Stars1.7k
Forks105
Last commit7 months ago
mox
moxElixir

A library for defining concurrent mocks in Elixir based on explicit behaviour contracts.

#elixir#test-isolation#unit-testing
Stars1.4k
Forks77
Last commit2 months ago
ShellSpec
ShellSpecShell

A full-featured BDD unit testing framework for bash, ksh, zsh, dash, and all POSIX shells.

#posix-compliant#unit-testing#shell-scripting
Stars1.4k
Forks78
Last commit8 months ago
Networking
NetworkingSwift

A Swift HTTP networking library with built-in request stubbing, image caching, and a clean, singleton-free API.

#ios#nsurlsession#unit-testing
Stars1.4k
Forks111
Last commit1 month ago
Mocha
MochaRuby

A Ruby library for mocking and stubbing objects in unit tests with a unified syntax for Minitest, Test::Unit, and RSpec.

#test-unit#unit-testing#stub
Stars1.3k
Forks159
Last commit10 days ago
GdUnit4
GdUnit4GDScript

An embedded unit testing framework for Godot 4, supporting GDScript and C# with TDD, mocking, and scene testing.

#unit-test#scene-testing#gdunit4
Stars1.2k
Forks69
Last commit1 day ago
ng-mocks
ng-mocksTypeScript

Angular testing library for mocking components, directives, pipes, services and facilitating TestBed setup.

#service#unit-testing#pipe
Stars1.2k
Forks121
Last commit2 days ago
Kahlan
KahlanPHP

A full-featured PHP test framework with RSpec/JSpec syntax, offering stubbing and monkey-patching without PECL extensions.

#composer#unit-testing#monkey-patching
Stars1.1k
Forks70
Last commit3 days ago
counterfeiter
counterfeiterGo

A Go tool for generating type-safe fake implementations of interfaces to simplify unit testing.

#unit-testing#test-doubles#mocking
Stars1.1k
Forks101
Last commit9 days ago
Page 1 of 3Next

Related Tags

#Testing59#Unit Testing57#Mock27#Test Doubles21#Integration Testing14#Testing Tools14#Tdd14#Stubbing13#Go12#Api Mocking12#Test Automation11#Elixir10
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub