Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

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

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Tags
  3. Test Doubles

Test Doubles

36 projects

Showing 36 of 36 projects

Mockito
MockitoJava

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

#software-testing#test-isolation#unit-testing
Stars15.5k
Forks2.7k
Last commit3 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
Forks470
Last commit5 days ago
Sinon.JS
Sinon.JSJavaScript

Standalone and test framework agnostic JavaScript test spies, stubs and mocks.

#stubs#spies#fake-timers
Stars9.8k
Forks811
Last commit10 days ago
Prophecy
ProphecyPHP

A highly opinionated yet powerful and flexible PHP object mocking framework for creating test doubles.

#stubs#spies#unit-testing
Stars8.5k
Forks245
Last commit6 months ago
Moq
MoqC#

A friendly and popular mocking library for .NET that leverages LINQ expressions for type-safe and refactoring-friendly unit tests.

#unit-testing#integration-testing#csharp
Stars6.4k
Forks832
Last commit8 days 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
Forks185
Last commit1 month 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 commit9 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
Forks115
Last commit2 years 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
Forks139
Last commit8 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.9k
Forks181
Last commit16 days 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
Forks83
Last commit14 days ago
mox
moxElixir

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

#elixir#test-isolation#unit-testing
Stars1.4k
Forks80
Last commit7 days 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
Forks160
Last commit1 month 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 commit8 days ago
bypass
bypassElixir

A mock HTTP server for Elixir testing that intercepts requests and returns preconfigured responses.

#elixir#integration-testing#http
Stars1.0k
Forks118
Last commit1 year ago
fff
fffC

A header-only C/C++ testing micro-framework for creating fake function test doubles with minimal boilerplate.

#micro-framework#unit-testing#embedded
Stars940
Forks178
Last commit3 years ago
meck
meckErlang

A mocking library for Erlang that enables dynamic mocking, call history tracking, and validation for unit testing.

#software-testing#unit-testing#integration-testing
Stars840
Forks230
Last commit8 days ago
mock
mockElixir

A mocking library for Elixir that uses the Erlang meck library to provide module mocking functionality for tests.

#elixir#test-isolation#unit-testing
Stars691
Forks82
Last commit1 year ago
faux
fauxRust

A Rust library for creating mocks from structs without requiring trait abstractions, designed for testing.

#struct-mocking#unit-testing#dev-tools
Stars483
Forks20
Last commit1 year ago
Phake
PhakePHP

A PHP mocking framework inspired by Mockito, using a verification strategy for test doubles and method stubs.

#spy#composer#unit-testing
Stars478
Forks86
Last commit8 months ago
PHP-Mock
PHP-MockPHP

A PHP testing library that mocks non-deterministic built-in functions like time() and rand() using namespace fallback.

#unit-testing#phpunit#test-doubles
Stars371
Forks19
Last commit8 months ago
RR
RRRuby

A Ruby test double framework with a rich selection of double techniques and terse syntax.

#test-unit#tdd#test-doubles
Stars327
Forks30
Last commit4 months ago
Delphi-Mocks
Delphi-MocksPascal

A mocking framework for Delphi XE2+ that uses RTTI to create test doubles for unit testing.

#software-testing#unit-testing#object-pascal
Stars251
Forks114
Last commit21 days ago
patch
patchElixir

An Elixir mocking library that patches functions for testing with unique superpowers like patching private functions.

#elixir#unit-testing#exunit
Stars214
Forks14
Last commit1 day ago
RSpec
RSpecRuby

A behavior-driven development framework for Ruby providing core testing tools with executable examples and expectations.

#rspec-core#unit-testing#behavior-driven-development
Stars120
Forks60
Last commit3 days ago
Mockit
MockitSwift

A tasty mocking framework for unit tests in Swift 5.0, inspired by Mockito, with a clean and simple API.

#unit-testing#xctest#tdd
Stars119
Forks26
Last commit7 years ago
webmock.cr
webmock.crCrystal

A Crystal library for stubbing HTTP::Client requests in tests, inspired by the Ruby webmock gem.

#webmock#unit-testing#integration-testing
Stars110
Forks19
Last commit15 days ago
aresponses
aresponsesPython

An asyncio testing server for mocking external HTTP services, similar to the responses library but for aiohttp.

#asyncio#aiohttp#pytest
Stars106
Forks20
Last commit2 years ago
mockery
mockeryElixir

A simple mocking library for asynchronous testing in Elixir that avoids module overrides and runtime module creation.

#mock-library#elixir-lang#elixir
Stars95
Forks10
Last commit1 year ago
rhum
rhumTypeScript

A test double library for Deno and Node.js that follows Gerard Meszaros's test double definitions.

#unit-testing#deno#test-doubles
Stars90
Forks6
Last commit2 years ago
fake_server
fake_serverElixir

An HTTP server that simulates responses for testing external APIs in Elixir with ExUnit.

#http-server#elixir#fake-server
Stars72
Forks26
Last commit6 years ago
vcr
vcrCrystal

A VCR port for Crystal that records HTTP interactions during tests and replays them for faster, deterministic test runs.

#integration-testing#http-recording#test-performance
Stars59
Forks7
Last commit4 years ago
mocks.cr
mocks.crCrystal

A general-purpose mocking library for Crystal with support for partial doubles, instance doubles, and class doubles.

#unit-testing#tdd#test-doubles
Stars55
Forks14
Last commit6 years ago
double
doubleElixir

An Elixir library for creating injectable test dependencies using pattern matching and message passing without overriding existing modules.

#elixir#unit-testing#mocking-alternative
Stars49
Forks6
Last commit3 years ago
test-doubles
test-doublesClojure

A small spying and stubbing library for Clojure and ClojureScript testing.

#clojurescript#test-isolation#unit-testing
Stars36
Forks4
Last commit5 years ago
mooncake
mooncakeGo

A Go library and CLI tool for generating mock implementations of Go interfaces for testing purposes.

#mock-generation#unit-testing#go-interfaces
Stars18
Forks0
Last commit4 years ago

Related Tags

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
#Unit Testing31
#Testing28
#Mocking21
#Mock10
#Tdd10
#Integration Testing8
#Elixir7
#Mocking Framework6
#Stub5
#Exunit5
#Stubbing5
#Go5