SaaSHub helps you find the best software and product alternatives Learn more →
Top 23 Mock Open-Source Projects
-
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.
-
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).
-
mockoon
Mockoon is the easiest and quickest way to run mock APIs locally. No remote deployment, no account required, open source.
-
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.
-
graphql-tools
:wrench: Utility library for GraphQL to build, stitch and mock GraphQL schemas in the SDL-first approach
-
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 robust data generator for Python that can produce a wide range of fake data in multiple languages.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
Mock Service Worker - https://mswjs.io/ (Mocking the API Responses in the browser without creating a separate mock server)
Project mention: How to start an Open Source project. Building RESO API JS client | dev.to | 2024-05-14Discuss which tech stack you and your team will use, and add cards to the Backlog list with description, adding this technology in your project. In our case, it is Mocha and Nock for testing and Axios for making API calls.
> 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 - Used as a logging server instead of using print in the console.
Project mention: How do you unit-test code that reaches out to the db, without introducing interfaces everywhere? | /r/golang | 2023-08-16
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
Project mention: For those DAO, Services, how about using static objects with mockk for test | /r/u_Fun_Indication4997 | 2023-12-08The 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.
Project mention: Exploring Mirage JS: Simplifying API Mocking in React Development | dev.to | 2023-08-07Mirage JS GitHub Repository
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
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:
Mock related posts
-
Visual Introduction to Frontend Testing Types
-
Easier TypeScript API Testing with Vitest + MSW
-
Creating mocks for testing react code
-
I Write Tests in Go
-
Storybook 8
-
I made "TypeScript Swagger Editor", new type of Swagger UI writing TypeScript code in the browser
-
Partial: how not to mock the whole world
-
A note from our sponsor - SaaSHub
www.saashub.com | 21 May 2024
Index
What are some of the best open-source Mock projects? This list will help you:
Project | Stars | |
---|---|---|
1 | vue-element-admin | 86,576 |
2 | msw | 14,946 |
3 | Mockito | 14,615 |
4 | Nock | 12,545 |
5 | Mockery | 10,572 |
6 | Moto | 7,412 |
7 | mockoon | 5,921 |
8 | go-sqlmock | 5,866 |
9 | mockery | 5,682 |
10 | mockk | 5,298 |
11 | miragejs | 5,297 |
12 | graphql-tools | 5,292 |
13 | OHHTTPStubs | 5,012 |
14 | Mimesis | 4,310 |
15 | responses | 4,057 |
16 | freezegun | 3,986 |
17 | WebMock | 3,917 |
18 | axios-mock-adapter | 3,394 |
19 | falso | 3,132 |
20 | rewire | 3,073 |
21 | Pester | 3,032 |
22 | graphql-faker | 2,673 |
23 | VCR.py | 2,619 |
Sponsored