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. Learn more →
Top 23 Mocking Open-Source Projects
-
github.com/stretchr/testify
-
> For those wondering what the use case is, you must not have tried it. It does take work to set up (with each version that's less), but it can be very nice to test in isolation esp in cases where a component is under a login, the 4th page of a 10 page form, etc. Also obviously if you're working on a component library that ships without an app, Storybook can be your development and/or demo app.
I have worked with storybook extensively over the past couple of years and my team is moving away from it in favour of MSW (https://mswjs.io).
For "4th page of a 10 page form" during the development there's hot reloading which is really stable nowadays and haven't failed me, although I understand that some setups are old and it might be easier to configure Storybook than good hot reloading.
I'm not entirely sure about the testing part of it and I'd be grateful if you could elaborate. I haven't felt the need for some special setup with SB because for unit tests, I can test a deeply nested component separately. For E2E tests, I usually test the whole form.
I agree on the component library part, this is probably the only use case where Storybook is 100% justified, but I'm unconvinced about the
-
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.
-
-
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).
-
This article reveals how to integrate WireMock into Fastify with ease, enabling developers to effortlessly generate mock responses for external services. Join us as we explore the straightforward process of seamlessly integrating and optimizing Fastify applications using WireMock for enhanced testing capabilities.
-
mockoon
Mockoon is the easiest and quickest way to run mock APIs locally. No remote deployment, no account required, open source.
Mockoon - Used as a logging server instead of using print in the console.
-
Project mention: go-ecommerce-microservices: A practical e-commerce microservices, built with cqrs, event sourcing, vertical slice architecture, event-driven architecture. | /r/golang | 2023-08-26
Some of the features: - ✅ Using Vertical Slice Architecture as a high level architecture - ✅ Using Event Driven Architecture on top of RabbitMQ Message Broker with a custom [Event Bus](pkg/messaging/bus/) - ✅ Using Event Sourcing in Audit Based services like [Orders Service](services/orders/) - ✅ Using CQRS Pattern and Mediator Patternon top of Go-MediatR library - ✅ Using Dependency Injection and Inversion of Controlon top of uber-go/fx library - ✅ Using RESTFul api with Echo framework and using swagger with swaggo/swag library - ✅ Using Postgres and EventStoreDB to write databases with fully supports transactions(ACID) - ✅ Using MongoDB and Elastic Search for read databases (NOSQL) - ✅ Using OpenTelemetry for collection Distributed Tracing with using Jaeger and Zipkin - ✅ Using OpenTelemetry for collection Metrics with using Prometheus and Grafana - ✅ Using Unit Test for testing small units with mocking dependent classes and using Mockery for mocking dependencies - ✅ Using End2End Test and Integration Test for testing features with all of their real dependeinces using docker containers (cleanup tests) and testcontainers-go library
-
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.
-
OHHTTPStubs
Stub your network requests easily! Test your apps with fake network data and custom response time, response code and headers!
-
PowerMock
PowerMock is a Java framework that allows you to unit test code normally regarded as untestable.
-
prism
Turn any OpenAPI2/3 and Postman Collection file into an API server with mocking, transformations and validations. (by stoplightio)
Since the OpenAPI can effectively describe our resources, we can reuse it to generate a dummy server that can be later used for development and testing purposes without bootstrapping any actual services. There some tools available that can help us with this task, such as Prism, OpenAPI Mock, OpenAPI Backend and the MSW library we have already seen.
-
-
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:
-
I made a library for this: https://github.com/kevin1024/vcrpy
-
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
-
hoverfly
Lightweight service virtualization/ API simulation / API mocking tool for developers and testers
-
httpretty
Intercept HTTP requests at the Python socket level. Fakes the whole socket module (by gabrielfalcao)
-
-
-
Project mention: vektra/mockery has fully released the "packages" feature! This blog explains what it is and how it works. | /r/golang | 2023-07-11
-
-
Swift testing this simple Hello World with XCTest and Cuckoo
-
-
mockhttp
Testing layer for Microsoft's HttpClient library. Create canned responses using a fluent API.
I'd say that without wanting to refactor the code a little bit (maybe moving those HttpClients into a service so that they are easily mocked) your best bet would be to use something like WireMock or MockHttp.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
Mocking related posts
- Fastify Meets WireMock: External Service Mocking
- Unit Test Like a Pro: Automock, My Open Source Answer to Mocking Frustration 🤓💡🎭
- Show HN: Automock – Open-Source Project for Simpler Unit Testing in TypeScript
- The most effective Schema-Driven Development using OpenAPI for Logistic Engineer
- What direction can I take to mocking a data structure that is relational on the front-end while I wait for backend endpoints to be created?
- What direction can I take to mock a (relational?) data-structure on the front-end while I wait for backend endpoints to be created?
- Automock - Open Source Project for Easier Unit Testing in TypeScript
-
A note from our sponsor - InfluxDB
www.influxdata.com | 28 Mar 2024
Index
What are some of the best open-source Mocking projects? This list will help you:
Project | Stars | |
---|---|---|
1 | Testify | 21,824 |
2 | msw | 14,635 |
3 | Mockito | 14,515 |
4 | Mockery | 10,550 |
5 | WireMock | 6,039 |
6 | mockoon | 5,793 |
7 | mockery | 5,544 |
8 | OHHTTPStubs | 5,013 |
9 | PowerMock | 4,124 |
10 | prism | 3,957 |
11 | axios-mock-adapter | 3,312 |
12 | Pester | 3,003 |
13 | VCR.py | 2,592 |
14 | NSubstitute | 2,534 |
15 | hoverfly | 2,305 |
16 | httpretty | 2,088 |
17 | gock | 2,005 |
18 | mountebank | 1,966 |
19 | moq | 1,750 |
20 | DuckRails | 1,720 |
21 | Cuckoo | 1,631 |
22 | FakeItEasy | 1,612 |
23 | mockhttp | 1,525 |