Mocks

Top 17 Mock Open-Source Projects

  • Mockito

    Most popular Mocking framework for unit tests written in Java

  • mockery

    A mock code autogenerator for Go (by vektra)

  • Project mention: I Write Tests in Go | news.ycombinator.com | 2024-04-10

    I'm far too lazy to write mocks by hand in go. You can generate a mock for a given interface with mockery https://github.com/vektra/mockery

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • NSubstitute

    A friendly substitute for .NET mocking libraries.

  • Project mention: What am I missing about interfaces? | /r/csharp | 2023-11-23

    a. you might do so purely out of argo cult, i.e. because someone told you this was the right thing to do™, and that's a silly exercise. b. you could also be doing this for a good reason: to use the interface with a mocking tool like NSubstitute

  • System.IO.Abstractions

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

  • mockolo

    Efficient Mock Generator for Swift

  • apitest

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

  • Project mention: Seeking API Ideas to Test the E2E Testing Framework | /r/golang | 2023-10-20

    Currently, I am developing an E2E testing framework called go-spectest/spectest. Spectest is a package forked from steinfletcher/apitest, and I have been gradually adding its unique features. To enhance spectest further, I believe it's best to actually test APIs.

  • Mockito

    HTTP mocking for Rust! (by lipanski)

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • hammox

    🏝 automated contract testing via type checking for Elixir functions and mocks

  • observer-spy

    This library makes RxJS Observables testing easy!

  • mimic

    A mocking library for Elixir (by edgurgel)

  • Mockito Scala

    Mockito for Scala language

  • Mockaco

    🐵 HTTP mock server, useful to stub services and simulate dynamic API responses, leveraging ASP.NET Core features, built-in fake data generation and pure C# scripting

  • camouflage

    Camouflage is a backend mocking tool for HTTP, gRPC, Websockets and Thrift protocols, which helps you carry out your front end prototyping, unit testing, functional/performance testing in silos, in absence of one or more Microservices/APIs.

  • gomockhandler

    Mr. gomockhandler is the clever and more agile manager of golang/mock (uber/mock) 👔

  • hanbi

    A small javascript library for stubbing and spying on methods/functions.

  • CreateAndFake

    A C# class library that handles mocking, test data generation, and validation.

  • mocksafe

    Type-safe mocking for Python.

  • Project mention: I made a type-safe mocking library | /r/Python | 2023-05-15
  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Mocks related posts

Index

What are some of the best open-source Mock projects? This list will help you:

Project Stars
1 Mockito 14,584
2 mockery 5,608
3 NSubstitute 2,550
4 System.IO.Abstractions 1,462
5 mockolo 775
6 apitest 738
7 Mockito 623
8 hammox 550
9 observer-spy 366
10 mimic 349
11 Mockito Scala 346
12 Mockaco 317
13 camouflage 253
14 gomockhandler 103
15 hanbi 58
16 CreateAndFake 11
17 mocksafe 3

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com