Mock

Top 23 Mock Open-Source Projects

  • vue-element-admin

    :tada: A magical vue admin https://panjiachen.github.io/vue-element-admin

  • msw

    Seamless REST/GraphQL API mocking library for browser and Node.js.

  • Project mention: Easier TypeScript API Testing with Vitest + MSW | dev.to | 2024-04-25

    However, I discovered a great combination that transformed my API call testing in TypeScript: Vitest and Mock Service Worker (MSW). Their well-crafted design makes them incredibly easy to use, enhancing the overall testing experience.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • Mockito

    Most popular Mocking framework for unit tests written in Java

  • Nock

    HTTP server mocking and expectations library for Node.js

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

  • Moto

    A library that allows you to easily mock out tests based on AWS infrastructure.

  • Project mention: OpenTF Announces Fork of Terraform | news.ycombinator.com | 2023-08-25

    > OpenMoto

    I dunno if you're trying to play on "hashimoto" but https://github.com/getmoto/moto#readme would be a prime name collision for any such "OpenMoto" name

    But yes, please, to adopting Vault. I don't have a horse in the race about Consul but my suspicion is such an effort would only be worthwhile if trying to adopt Nomad, too, which I gravely doubt

  • mockoon

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

  • Project mention: Handling Firebase Notifications in Flutter: Practical Tips | dev.to | 2024-01-14

    Mockoon - Used as a logging server instead of using print in the console.

  • 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
  • go-sqlmock

    Sql mock driver for golang to test database interactions

  • Project mention: How do you unit-test code that reaches out to the db, without introducing interfaces everywhere? | /r/golang | 2023-08-16
  • 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

  • graphql-tools

    :wrench: Utility library for GraphQL to build, stitch and mock GraphQL schemas in the SDL-first approach

  • miragejs

    A client-side server to build, test and share your JavaScript app

  • Project mention: Exploring Mirage JS: Simplifying API Mocking in React Development | dev.to | 2023-08-07

    Mirage JS GitHub Repository

  • mockk

    mocking library for Kotlin

  • Project mention: For those DAO, Services, how about using static objects with mockk for test | /r/u_Fun_Indication4997 | 2023-12-08

    The official suggests using dagger/hilt to inject them. However, they could be static based on the static ApplicationContext. Although Dagger/hilt aids in unit testing, mockk can accomplish this easily as well by modifying bytecode during run time. As for the stability, `mockk` has 5000+ stars on GitHub and keeps renewing.

  • OHHTTPStubs

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

  • Mimesis

    Mimesis is a powerful Python library that empowers developers to generate massive amounts of synthetic data efficiently.

  • responses

    A utility for mocking out the Python Requests library.

  • Project mention: Please recommend a good API Mocking tool | /r/django | 2023-05-16
  • freezegun

    Let your Python tests travel through time

  • Project mention: About time: how to unit test code that depends on time | news.ycombinator.com | 2023-12-19

    * in C++.

    On Python, just use freezegun to inject controllable timestamps in response to calls to time methods.

    https://github.com/spulec/freezegun

  • WebMock

    Library for stubbing and setting expectations on HTTP requests in Ruby.

  • Project mention: CableReady broadcasts are not working in system tests | /r/rails | 2023-05-10

    If you want to check out an alternative to VCR, have a look at webmock.

  • axios-mock-adapter

    Axios adapter that allows to easily mock requests

  • falso

    All the Fake Data for All Your Real Needs 🙂

  • rewire

    Easy monkey-patching for node.js unit tests (by jhnns)

  • Project mention: Build a web editor with react-monaco-editor | dev.to | 2023-05-04

    Ejecting a React app is a bad idea because our application will lose all the React configurations and will not benefit from the CRA updates. Some solutions for ejecting our application include using packages like react-app-rewired or rewire. You can also use CRACO to eject your React application, but it needs you to install additional plugins.

  • Pester

    Pester is the ubiquitous test and mock framework for PowerShell.

  • Project mention: PyPyInstaller Powershell Module Initial Code Push | dev.to | 2023-09-25

    Pester is what's used for most Powershell testing. While it has some pretty amazing features, it does have issues with .NET class method mocking and sometimes scope can be weird. Here's a simple example:

  • graphql-faker

    🎲 Mock or extend your GraphQL API with faked data. No coding required.

  • VCR.py

    Automatically mock your HTTP interactions to simplify and speed up testing

  • Project mention: Please recommend a good API Mocking tool | /r/django | 2023-05-16

    I made a library for this: https://github.com/kevin1024/vcrpy

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

Mock related posts

  • Easier TypeScript API Testing with Vitest + MSW

    3 projects | dev.to | 25 Apr 2024
  • Creating mocks for testing react code

    1 project | dev.to | 22 Apr 2024
  • I Write Tests in Go

    1 project | news.ycombinator.com | 10 Apr 2024
  • Storybook 8

    5 projects | news.ycombinator.com | 13 Mar 2024
  • I made "TypeScript Swagger Editor", new type of Swagger UI writing TypeScript code in the browser

    3 projects | dev.to | 18 Feb 2024
  • Partial: how not to mock the whole world

    4 projects | dev.to | 8 Feb 2024
  • Ask HN: Those making $500+/month on side projects in 2024 – Show and tell

    1 project | news.ycombinator.com | 10 Jan 2024
  • A note from our sponsor - SaaSHub
    www.saashub.com | 3 May 2024
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

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

Project Stars
1 vue-element-admin 86,428
2 msw 14,848
3 Mockito 14,596
4 Nock 12,531
5 Mockery 10,565
6 Moto 7,394
7 mockoon 5,886
8 go-sqlmock 5,837
9 mockery 5,621
10 graphql-tools 5,288
11 miragejs 5,286
12 mockk 5,284
13 OHHTTPStubs 5,015
14 Mimesis 4,307
15 responses 4,045
16 freezegun 3,972
17 WebMock 3,912
18 axios-mock-adapter 3,370
19 falso 3,117
20 rewire 3,070
21 Pester 3,019
22 graphql-faker 2,668
23 VCR.py 2,614

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