Git Stars Git Stars

#mocking Repositories

Discover 62 active open source GitHub repositories tagged with #mocking, accumulating 243,713 total stars (averaging 3,930 stars per project). Leading this topic is google/googletest with 39,763 stars.

62
Total Repositories
243,713
Total Stars
3,930
Avg Stars/Repo
1
google/googletest

GoogleTest - Google Testing and Mocking Framework

google
โญ 39,763 C++ ๐Ÿ‘ค google Organization ๐Ÿ• Updated 2026-11-17 ๐Ÿ“… Created 2015-07-28
2
stretchr/testify

A toolkit with common assertions and mocks that plays nicely with the standard library

stretchr
โญ 26,259 Go ๐Ÿ‘ค stretchr Organization ๐Ÿ• Updated 2026-11-20 ๐Ÿ“… Created 2012-10-16
3
nuysoft/Mock

A simulation data generator

nuysoft
โญ 19,651 JavaScript ๐Ÿ‘ค nuysoft User ๐Ÿ• Updated 2024-03-15 ๐Ÿ“… Created 2013-04-26
4
mswjs/msw

The industry standard for API mocking in JavaScript.

mswjs
โญ 18,356 TypeScript ๐Ÿ‘ค mswjs Organization ๐Ÿ• Updated 2026-11-18 ๐Ÿ“… Created 2018-11-13
5
mockito/mockito

Most popular Mocking framework for unit tests written in Java

mockito
โญ 15,451 Java ๐Ÿ‘ค mockito Organization ๐Ÿ• Updated 2026-11-20 ๐Ÿ“… Created 2012-10-13
6
mockery/mockery

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).

mockery
โญ 10,723 PHP ๐Ÿ‘ค mockery Organization ๐Ÿ• Updated 2026-10-18 ๐Ÿ“… Created 2009-02-25
7
mockoon/mockoon

Mockoon is the easiest and quickest way to run mock APIs locally. No remote deployment, no account required, open source.

mockoon
โญ 8,493 TypeScript ๐Ÿ‘ค mockoon Organization ๐Ÿ• Updated 2026-11-21 ๐Ÿ“… Created 2017-07-17
8
phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

phpspec
โญ 8,460 PHP ๐Ÿ‘ค phpspec Organization ๐Ÿ• Updated 2026-04-13 ๐Ÿ“… Created 2013-03-25
9
wiremock/wiremock

A tool for mocking HTTP services

wiremock
โญ 7,433 Java ๐Ÿ‘ค wiremock Organization ๐Ÿ• Updated 2026-11-20 ๐Ÿ“… Created 2011-10-09
10
vektra/mockery

A mock code autogenerator for Go

vektra
โญ 7,183 Go ๐Ÿ‘ค vektra Organization ๐Ÿ• Updated 2026-11-18 ๐Ÿ“… Created 2014-09-02
11
AliSoftware/OHHTTPStubs

Stub your network requests easily! Test your apps with fake network data and custom response time, response code and headers!

AliSoftware
โญ 5,075 Objective-C ๐Ÿ‘ค AliSoftware User ๐Ÿ• Updated 2024-05-09 ๐Ÿ“… Created 2012-07-10
12
stoplightio/prism

Turn any OpenAPI2/3 and Postman Collection file into an API server with mocking, transformations and validations.

stoplightio
โญ 5,072 TypeScript ๐Ÿ‘ค stoplightio Organization ๐Ÿ• Updated 2026-11-19 ๐Ÿ“… Created 2016-03-18
13
powermock/powermock

PowerMock is a Java framework that allows you to unit test code normally regarded as untestable.

powermock
โญ 4,190 Java ๐Ÿ‘ค powermock Organization ๐Ÿ• Updated 2024-01-03 ๐Ÿ“… Created 2014-05-28
14
ctimmerm/axios-mock-adapter

Axios adapter that allows to easily mock requests

ctimmerm
โญ 3,541 JavaScript ๐Ÿ‘ค ctimmerm User ๐Ÿ• Updated 2026-02-07 ๐Ÿ“… Created 2016-03-21
15
pester/Pester

Pester is the ubiquitous test and mock framework for PowerShell.

pester
โญ 3,384 PowerShell ๐Ÿ‘ค pester Organization ๐Ÿ• Updated 2026-11-12 ๐Ÿ“… Created 2011-01-02
16
kevin1024/vcrpy

Automatically mock your HTTP interactions to simplify and speed up testing

kevin1024
โญ 3,024 Python ๐Ÿ‘ค kevin1024 User ๐Ÿ• Updated 2026-11-17 ๐Ÿ“… Created 2012-05-29
17
nsubstitute/NSubstitute

A friendly substitute for .NET mocking libraries.

nsubstitute
โญ 2,979 C# ๐Ÿ‘ค nsubstitute Organization ๐Ÿ• Updated 2026-11-16 ๐Ÿ“… Created 2009-10-23
18
google/jimfs

An in-memory file system for Java

google
โญ 2,565 Java ๐Ÿ‘ค google Organization ๐Ÿ• Updated 2026-11-10 ๐Ÿ“… Created 2013-10-21
19
SpectoLabs/hoverfly

Lightweight service virtualization/ API simulation / API mocking tool for developers and testers

SpectoLabs
โญ 2,534 Go ๐Ÿ‘ค SpectoLabs Organization ๐Ÿ• Updated 2026-11-20 ๐Ÿ“… Created 2015-11-30
20
h2non/gock

HTTP traffic mocking and testing made easy in Go เผผส˜ฬšู„อœส˜ฬšเผฝ

h2non
โญ 2,212 Go ๐Ÿ‘ค h2non User ๐Ÿ• Updated 2024-09-24 ๐Ÿ“… Created 2016-03-02
21
matryer/moq

Interface mocking tool for go generate

matryer
โญ 2,209 Go ๐Ÿ‘ค matryer User ๐Ÿ• Updated 2026-10-14 ๐Ÿ“… Created 2016-08-29
22
gabrielfalcao/HTTPretty

Intercept HTTP requests at the Python socket level. Fakes the whole socket module

gabrielfalcao
โญ 2,209 Python ๐Ÿ‘ค gabrielfalcao User ๐Ÿ• Updated 2024-06-09 ๐Ÿ“… Created 2011-01-28
23
mountebank-testing/mountebank

Over the wire test doubles

mountebank-testing
โญ 2,108 JavaScript ๐Ÿ‘ค mountebank-testing Organization ๐Ÿ• Updated 2026-11-16 ๐Ÿ“… Created 2013-10-27
24
microcks/microcks

The open source, cloud native tool for API Mocking and Testing. Microcks is a Cloud Native Computing Foundation incubating project ๐Ÿš€

microcks
โญ 2,091 Java ๐Ÿ‘ค microcks Organization ๐Ÿ• Updated 2026-11-15 ๐Ÿ“… Created 2015-02-23
25
Kong/insomnia-mockbin

Insomnia Mockbin is the underlying backend for the API mocks capability of Insomnia. It is built and used by Kong, the author of the open-source Kong Gateway.

Kong
โญ 2,055 JavaScript ๐Ÿ‘ค Kong Organization ๐Ÿ• Updated 2026-11-04 ๐Ÿ“… Created 2014-03-10
26
asomers/mockall

A powerful mock object library for Rust

asomers
โญ 1,853 Rust ๐Ÿ‘ค asomers User ๐Ÿ• Updated 2026-11-03 ๐Ÿ“… Created 2019-02-07
27
FakeItEasy/FakeItEasy

The easy mocking library for .NET

FakeItEasy
โญ 1,847 C# ๐Ÿ‘ค FakeItEasy Organization ๐Ÿ• Updated 2026-11-14 ๐Ÿ“… Created 2011-06-19
28
richardszalay/mockhttp

Testing layer for Microsoft's HttpClient library. Create canned responses using a fluent API.

richardszalay
โญ 1,764 C# ๐Ÿ‘ค richardszalay User ๐Ÿ• Updated 2026-08-08 ๐Ÿ“… Created 2014-06-22
29
Brightify/Cuckoo

Boilerplate-free mocking framework for Swift!

Brightify
โญ 1,743 Swift ๐Ÿ‘ค Brightify Organization ๐Ÿ• Updated 2026-09-05 ๐Ÿ“… Created 2016-01-12
30
wiremock/WireMock.Net

WireMock.Net is a flexible product for stubbing and mocking web HTTP responses using advanced request matching and response templating. Based on WireMock Java, but extended and different functionality. Full documentation can be found at https://wiremock.org/dotnet/.

wiremock
โญ 1,684 C# ๐Ÿ‘ค wiremock Organization ๐Ÿ• Updated 2026-11-20 ๐Ÿ“… Created 2017-01-17
31
testdouble/testdouble.js

A minimal test double library for TDD with JavaScript

testdouble
โญ 1,425 JavaScript ๐Ÿ‘ค testdouble Organization ๐Ÿ• Updated 2026-11-04 ๐Ÿ“… Created 2015-09-07
32
3lvis/Networking

Swift HTTP Networking with stubbing and caching support

3lvis
โญ 1,383 Swift ๐Ÿ‘ค 3lvis User ๐Ÿ• Updated 2026-09-17 ๐Ÿ“… Created 2015-02-22
33
godot-gdunit-labs/gdUnit4

Embedded unit testing framework for Godot 4 supporting GDScript and C#. Features test-driven development, embedded test inspector, extensive assertions, mocking, scene testing.

godot-gdunit-labs
โญ 1,311 GDScript ๐Ÿ‘ค godot-gdunit-labs Organization ๐Ÿ• Updated 2026-11-17 ๐Ÿ“… Created 2022-10-05
34
wheresrhys/fetch-mock

Mock http requests made using fetch

wheresrhys
โญ 1,305 JavaScript ๐Ÿ‘ค wheresrhys User ๐Ÿ• Updated 2026-11-12 ๐Ÿ“… Created 2015-04-30
35
cksac/fake-rs

A library for generating fake data in Rust.

cksac
โญ 1,246 Rust ๐Ÿ‘ค cksac User ๐Ÿ• Updated 2026-09-15 ๐Ÿ“… Created 2016-06-29
36
help-me-mom/ng-mocks

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

help-me-mom
โญ 1,165 TypeScript ๐Ÿ‘ค help-me-mom Organization ๐Ÿ• Updated 2026-11-20 ๐Ÿ“… Created 2018-02-10
37
dwyl/aws-sdk-mock

:rainbow: AWSomocks for Javascript/Node.js aws-sdk tested, documented & maintained. Contributions welcome!

dwyl
โญ 1,127 TypeScript ๐Ÿ‘ค dwyl Organization ๐Ÿ• Updated 2026-11-17 ๐Ÿ“… Created 2016-02-05
38
mswjs/data

Data querying library for testing JavaScript applications.

mswjs
โญ 1,069 TypeScript ๐Ÿ‘ค mswjs Organization ๐Ÿ• Updated 2026-11-19 ๐Ÿ“… Created 2020-12-08
39
mongomock/mongomock

Small library for mocking pymongo collection objects for testing purposes

mongomock
โญ 1,008 Python ๐Ÿ‘ค mongomock Organization ๐Ÿ• Updated 2026-11-19 ๐Ÿ“… Created 2012-03-14
40
jonreid/OCMockito

Mockito for Objective-C: creation, verification and stubbing of mock objects

jonreid
โญ 987 Objective-C ๐Ÿ‘ค jonreid User ๐Ÿ• Updated 2026-11-08 ๐Ÿ“… Created 2011-11-25
41
tschaub/mock-fs

Configurable mock for the fs module

tschaub
โญ 919 JavaScript ๐Ÿ‘ค tschaub User ๐Ÿ• Updated 2026-03-01 ๐Ÿ“… Created 2013-11-08
42
uber/mockolo

Efficient Mock Generator for Swift

uber
โญ 888 Swift ๐Ÿ‘ค uber Organization ๐Ÿ• Updated 2026-11-14 ๐Ÿ“… Created 2018-12-14
43
ramantsitou/MockQueryable

Mocking Entity Framework Core operations such ToListAsync, FirstOrDefaultAsync etc. Author Raman Tsitou

ramantsitou
โญ 868 C# ๐Ÿ‘ค ramantsitou User ๐Ÿ• Updated 2026-11-21 ๐Ÿ“… Created 2017-12-26
44
ThrowTheSwitch/Ceedling

Unit testing and build system for C projects

ThrowTheSwitch
โญ 866 Ruby ๐Ÿ‘ค ThrowTheSwitch Organization ๐Ÿ• Updated 2026-11-21 ๐Ÿ“… Created 2012-01-26
45
stoplightio/studio

The modern editor for API Design and Technical Writing.

stoplightio
โญ 860 ๐Ÿ‘ค stoplightio Organization ๐Ÿ• Updated 2024-02-29 ๐Ÿ“… Created 2019-06-19
46
steinfletcher/apitest

A simple and extensible behavioural testing library for Go. You can use api test to simplify REST API, HTTP handler and e2e tests.

steinfletcher
โญ 849 Go ๐Ÿ‘ค steinfletcher User ๐Ÿ• Updated 2026-10-27 ๐Ÿ“… Created 2018-12-26
47
ThrowTheSwitch/CMock

Mock/stub generator for C

ThrowTheSwitch
โญ 849 C ๐Ÿ‘ค ThrowTheSwitch Organization ๐Ÿ• Updated 2026-10-17 ๐Ÿ“… Created 2012-01-26
48
thoov/mock-socket

Javascript mocking library for WebSockets and Socket.IO

thoov
โญ 806 JavaScript ๐Ÿ‘ค thoov User ๐Ÿ• Updated 2025-02-10 ๐Ÿ“… Created 2014-11-13
49
pytest-dev/pyfakefs

Provides a fake file system that mocks the Python file system modules.

pytest-dev
โญ 758 Python ๐Ÿ‘ค pytest-dev Organization ๐Ÿ• Updated 2026-11-18 ๐Ÿ“… Created 2015-03-16
50
mswjs/examples

Mock Service Worker usage examples.

mswjs
โญ 730 ๐Ÿ‘ค mswjs Organization ๐Ÿ• Updated 2025-09-16 ๐Ÿ“… Created 2020-05-17

Frequently Asked Questions

1

What is the most popular #mocking repository on GitHub?

The top ranked open source #mocking project on GitHub is google/googletest with 39,763 stars. GoogleTest - Google Testing and Mocking Framework

2

Which programming languages are most used in #mocking repositories?

Among the top ranked #mocking projects on GitHub, the most common programming languages are JavaScript, Go, TypeScript, Java.

3

How is the #mocking repository ranking calculated?

We track 62 active open source repositories tagged with #mocking (500+ stars), totaling 243,713 stars with an average of 3,930 stars per repository. Rankings update daily from the GitHub API.