Mocking Open Source Projects

Browse 253 Mocking open source projects, ranked by GitHub stars. Find the most popular Mocking tools and libraries.

Share your experience:✍️ Write a Post❓ Ask a Question
1-60 of 253 projects
65,141 stars

localstack/localstack

💻 A fully functional local AWS cloud stack. Develop and test your cloud & Serverless apps offline

Metrics details
Stars65,141
45,465 stars

jestjs/jest

Delightful JavaScript Testing.

Metrics details
Stars45,465
26,088 stars

stretchr/testify

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

Metrics details
Stars26,088
18,078 stars

mswjs/msw

Industry standard API mocking for JavaScript.

Metrics details
Stars18,078
10,724 stars

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

Metrics details
Stars10,724
9,357 stars

golang/mock

GoMock is a mocking framework for the Go programming language.

Metrics details
Stars9,357
8,338 stars

mockoon/mockoon

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

Metrics details
Stars8,338
7,301 stars

wiremock/wiremock

A tool for mocking HTTP services

Metrics details
Stars7,301
7,153 stars

vektra/mockery

A mock code autogenerator for Go

Metrics details
Stars7,153
6,565 stars

DATA-DOG/go-sqlmock

Sql mock driver for golang to test database interactions

Metrics details
Stars6,565
5,748 stars

mockk/mockk

mocking library for Kotlin

Metrics details
Stars5,748
5,070 stars

AliSoftware/OHHTTPStubs

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

Metrics details
Stars5,070
4,990 stars

stoplightio/prism

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

Metrics details
Stars4,990
4,343 stars

getsentry/responses

A utility for mocking out the Python Requests library.

Metrics details
Stars4,343
4,173 stars

powermock/powermock

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

Metrics details
Stars4,173
3,544 stars

ctimmerm/axios-mock-adapter

Axios adapter that allows to easily mock requests

Metrics details
Stars3,544
3,304 stars

pester/Pester

Pester is the ubiquitous test and mock framework for PowerShell.

Metrics details
Stars3,304
2,975 stars

kevin1024/vcrpy

Automatically mock your HTTP interactions to simplify and speed up testing

Metrics details
Stars2,975
2,962 stars

nsubstitute/NSubstitute

A friendly substitute for .NET mocking libraries.

Metrics details
Stars2,962
2,505 stars

SpectoLabs/hoverfly

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

Metrics details
Stars2,505
2,218 stars

h2non/gock

HTTP traffic mocking and testing made easy in Go ༼ʘ̚ل͜ʘ̚༽

Metrics details
Stars2,218
2,202 stars

matryer/moq

Interface mocking tool for go generate

Metrics details
Stars2,202
2,162 stars

gabrielfalcao/HTTPretty

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

Metrics details
Stars2,162
2,080 stars

jarcoal/httpmock

HTTP mocking for Golang

Metrics details
Stars2,080
2,047 stars

Kong/mockbin

Mock, Test & Track HTTP Requests and Response for Microservices

Metrics details
Stars2,047
2,032 stars

pytest-dev/pytest-mock

Thin-wrapper around the mock package for easier use with pytest

Metrics details
Stars2,032
1,994 stars

microcks/microcks

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

Metrics details
Stars1,994
1,969 stars

linkedin/dexmaker

A utility for doing compile or runtime code generation targeting Android's Dalvik VM

Metrics details
Stars1,969
1,967 stars

haskell-servant/servant

Servant is a Haskell DSL for describing, serving, querying, mocking, documenting web applications and more!

Metrics details
Stars1,967
1,838 stars

FakeItEasy/FakeItEasy

The easy mocking library for .NET

Metrics details
Stars1,838
1,763 stars

richardszalay/mockhttp

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

Metrics details
Stars1,763
1,744 stars

Brightify/Cuckoo

Boilerplate-free mocking framework for Swift!

Metrics details
Stars1,744
1,710 stars

iridakos/duckrails

Development tool to mock API endpoints quickly and easily - NOT MAINTAINED

Metrics details
Stars1,710
1,675 stars

WireMock-Net/WireMock.Net

WireMock.Net is a flexible product for stubbing and mocking web HTTP responses using advanced request matching and response templating. Based on the functionality from http://WireMock.org, but extended with more functionality.

Metrics details
Stars1,675
1,429 stars

testdouble/testdouble.js

A minimal test double library for TDD with JavaScript

Metrics details
Stars1,429
1,383 stars

kiwix/kiwix-android

Kiwix for Android

Metrics details
Stars1,383
1,381 stars

3lvis/Networking

Swift HTTP Networking with stubbing and caching support

Metrics details
Stars1,381
1,285 stars

freerange/mocha

A mocking and stubbing library for Ruby

Metrics details
Stars1,285
1,156 stars

help-me-mom/ng-mocks

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

Metrics details
Stars1,156
1,145 stars

google/intermock

Mocking library to create mock objects with fake data for TypeScript interfaces

Metrics details
Stars1,145
1,131 stars

h2non/gentleman

Plugin-driven, extensible HTTP client toolkit for Go

Metrics details
Stars1,131
1,114 stars

in28minutes/spring-boot-master-class

Understand and love the power of Spring Boot - All its features are illustrated developing a web application managing todos and a basic API for survey questionnaire. Also covers unit testing, mocking and integration testing.

Metrics details
Stars1,114
1,105 stars

tonerdo/pose

Replace any .NET method (including static and non-virtual) with a delegate

Metrics details
Stars1,105
1,088 stars

domenic/sinon-chai

Extends Chai with assertions for the Sinon.JS mocking framework.

Metrics details
Stars1,088
1,087 stars

google/cmockery

A lightweight library to simplify and generalize the process of writing unit tests for C applications.

Metrics details
Stars1,087
1,033 stars

mswjs/data

Data querying library for testing JavaScript applications.

Metrics details
Stars1,033
1,004 stars

service-mocker/service-mocker

🚀 Next generation frontend API mocking framework

Metrics details
Stars1,004
1,003 stars

mongomock/mongomock

Small library for mocking pymongo collection objects for testing purposes

Metrics details
Stars1,003
998 stars

NagRock/ts-mockito

Mocking library for TypeScript

Metrics details
Stars998
996 stars

stripe-ruby-mock/stripe-ruby-mock

A mocking library for testing stripe ruby

Metrics details
Stars996
991 stars

jonreid/OCMockito

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

Metrics details
Stars991
904 stars

marchaos/jest-mock-extended

Type safe mocking extensions for Jest https://www.npmjs.com/package/jest-mock-extended

Metrics details
Stars904
899 stars

irahardianto/service-pattern-go

Simple clean Go REST API architecture with dependency injection and mocking example, following SOLID principles.

Metrics details
Stars899
892 stars

jefflau/jest-fetch-mock

Jest mock for fetch

Metrics details
Stars892
885 stars

uber/mockolo

Efficient Mock Generator for Swift

Metrics details
Stars885
878 stars

rollbear/trompeloeil

Header only C++14 mocking framework

Metrics details
Stars878
871 stars

stoplightio/studio

The modern editor for API Design and Technical Writing.

Metrics details
Stars871
871 stars

httptoolkit/mockttp

Powerful friendly HTTP mock server & proxy library

Metrics details
Stars871
866 stars

romantitov/MockQueryable

Mocking Entity Framework Core operations such ToListAsync, FirstOrDefaultAsync etc

Metrics details
Stars866
853 stars

cockroachdb/copyist

Mocking your SQL database in Go tests has never been easier.

Metrics details
Stars853
1-60 of 253 projects
Get A Weekly Email With Trending Mocking Projects
Stay updated on Mocking plus related topics you pick below.

Copyright 2018-2026 Awesome Open Source.  All rights reserved.