LFX Platform

Know more about LFX Platform

LFX Insights

Mocking Frameworks

Libraries and frameworks that provide mock objects and test doubles to support unit testing by simulating dependencies and complex behaviors.

27 projects

21,893 contributors

$2.1B

GoogleTest

GoogleTest - Google Testing and Mocking Framework

Contributors

3,723

Organizations

754

Software value

$2.5M

RSpec Rails

RSpec Rails is a testing framework that brings RSpec's behavior-driven development approach to Ruby on Rails applications, providing a domain-specific language for writing readable, maintainable tests and specifications for Rails components

Contributors

2,797

Organizations

1,004

Software value

$571K

Mockito

Mockito is a popular mocking framework for Java unit testing that allows creating and configuring mock objects. It enables developers to write clean tests by mocking dependencies and verifying behavior in an elegant way.

Contributors

2,618

Organizations

552

Software value

$2.3M

Mock Service Worker

Industry standard API mocking for JavaScript.

Contributors

2,376

Organizations

695

Software value

$918K

Sinon.JS

Sinon.JS is a standalone test spies, stubs and mocks library for JavaScript. It provides test doubles that can be used with any unit testing framework to help verify and validate behavior of JavaScript applications.

Contributors

2,296

Organizations

800

Software value

$1.1M

Testify

Testify is a testing and assertion toolkit for Go that provides a rich set of assertion functions and testing utilities to make writing tests easier and more expressive

Contributors

2,000

Organizations

780

Software value

$659K

Microcks

Microcks is an open source tool for API mocking and testing. It helps teams simulate API behavior and automate testing by creating mocks from API contracts (OpenAPI, AsyncAPI, etc.) and recording real service traffic. The platform supports REST, GraphQL, gRPC, and event-driven APIs.

Contributors

1,999

Organizations

348

Software value

$2.1B

Nock

Nock is an HTTP server mocking and expectations library for Node.js that allows intercepting HTTP requests and providing mock responses for testing purposes

Contributors

1,699

Organizations

633

Software value

$528K

WebMock

WebMock is a library for stubbing and setting expectations on HTTP requests in Ruby. It allows developers to disable real HTTP requests and simulate responses for testing purposes, supporting features like request matching, response stubbing, and request verification.

Contributors

1,263

Organizations

494

Software value

$474K

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

Contributors

1,122

Organizations

369

Software value

$3.7M

AutoFixture

AutoFixture is an open source library for .NET designed to minimize the 'Arrange' phase of your unit tests in order to maximize maintainability. Its primary goal is to allow developers to focus on what is being tested rather than how to setup the test scenario, by making it easier to create object graphs containing test data.

This project hasn't been onboarded to LFX Insights.

EasyMock

EasyMock, makes mocking easier since 2001

This project hasn't been onboarded to LFX Insights.

Freerange Mocha: Ruby Mocking and Stubbing Library

A mocking and stubbing library for Ruby

This project hasn't been onboarded to LFX Insights.

GoMock

GoMock is a mocking framework for the Go programming language.

This project hasn't been onboarded to LFX Insights.

Miniredis

Pure Go Redis server for Go unittests

This project hasn't been onboarded to LFX Insights.

MockBukkit

MockBukkit is a mocking framework for Bukkit/PaperMC to allow the easy unit testing of Bukkit plugins.

This project hasn't been onboarded to LFX Insights.

MockK

mocking library for Kotlin

This project hasn't been onboarded to LFX Insights.

MockRedis

Mock Redis gem for Ruby

This project hasn't been onboarded to LFX Insights.

MockServer

MockServer enables easy mocking of any system you integrate with via HTTP or HTTPS with clients written in Java, JavaScript and Ruby. MockServer also includes a proxy that introspects all proxied traffic including encrypted SSL traffic and supports Port Forwarding, Web Proxying (i.e. HTTP proxy), HTTPS Tunneling Proxying (using HTTP CONNECT) and SOCKS Proxying (i.e. dynamic port forwarding).

This project hasn't been onboarded to LFX Insights.

NSubstitute

A friendly substitute for .NET mocking libraries.

This project hasn't been onboarded to LFX Insights.

Pester

Pester is the ubiquitous test and mock framework for PowerShell.

This project hasn't been onboarded to LFX Insights.

Prophecy

Highly opinionated mocking framework for PHP 5.3+

This project hasn't been onboarded to LFX Insights.

RR (Double)

RR is a test double framework that features a rich selection of double techniques and a terse syntax. ⛺

This project hasn't been onboarded to LFX Insights.

System.IO.Abstractions

Just like System.Web.Abstractions, but for System.IO. Yay for testable IO access!

This project hasn't been onboarded to LFX Insights.

mockery

A mock code autogenerator for Go

This project hasn't been onboarded to LFX Insights.

python-dbusmock

python-dbusmock: mock D-Bus objects for tests

This project hasn't been onboarded to LFX Insights.
Looking for a project that’s not listed?