WireMock
Pact JVM
Our great sponsors
WireMock | Pact JVM | |
---|---|---|
13 | 25 | |
6,084 | 1,056 | |
1.3% | 1.2% | |
9.6 | 8.9 | |
1 day ago | 2 days ago | |
Java | Kotlin | |
Apache License 2.0 | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
WireMock
-
Fastify Meets WireMock: External Service Mocking
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.
- Wiremock
-
r/programming should shut down from 12th to 14th June
https://github.com/wiremock/wiremock is one such tool.
- Hello, the HN World WireMock joins the chat
-
How do you create test cases for APIs?
Check out https://wiremock.org/
-
WireMock Extension for PHPUnit
Me and my company use WireMock a lot, it's nice tool but didn't find any nice ways to integrate with PHPUnit. What is WireMock you may ask - it's tool for mocking http requests/responses, like 3-rd apis https://wiremock.org. Wanted to use our tool which was under private repository in other projects I work in, so decided to release our own in-house WireMock integration with PHPUnit as library so it can be used by other people - https://packagist.org/packages/cobiro/wiremock, features are pretty simple:
-
What are your biggest pains when building and consuming APIs? Hit me..
A nightmare indeed! Try wiremock
- We created WireMock, an API platform that is designed to improve developer productivity and enables developers and testers to Mock APIs in every stage of the API lifecycle
- WireMock is an API platform that is designed to improve developer productivity and enables developers and testers to Mock APIs in every stage of the API lifecycle
-
How to Boost Code Coverage with Functional Testing
Yes I agree, mocking is a bit of an overloaded term, and the libraries we used for stubbing like gRPC Mock and WireMock also have `mock` in their name, even though they are real servers with stubbing
Pact JVM
-
Running tests against a different repository (CI/CD)
API Contract Testing might be worth exploring. Gives you the ability to run it quickly locally or in CI/CD. A centralized way to validate if your changes broke another service might also be interesting. That series of videos from the same team is gold: https://docs.pact.io
-
API testing for new project (new to APIs)
We use Pact for contract testing https://docs.pact.io/
-
Why I will stop mocking for most of my Unit Tests in a Spring-Boot Application
The introduction here is quite good: https://docs.pact.io/
-
Does anyone know how to do an integration test on microservices build with asp core?
Pact.Net documentation: https://docs.pact.io/ Mountebank documentation: http://www.mbtest.org/ The Microsoft.AspNetCore.TestHost package on GitHub: https://github.com/aspnet/AspNetCore/tree/main/src/Testing/Microsoft.AspNetCore.TestHost
-
Integration testing best practices for API servers...
There's also https://docs.pact.io/ but I haven't had time yet to really look into it but probably someone else can tell something about it.
-
🤝 Contract Testing with Pact
This PoC shows a step by step implementation of contract testing using Pact.
-
Operation Pact or: How I Learned to Stop Worrying and Love Contract Testing
Contract tests assert that inter-application messages conform to a shared understanding documented in a contract. Without contract testing, the only way to ensure that applications will work correctly together is by using expensive and brittle integration tests.
-
How to Share API Changes with Your Team
If you are updating your API based on user feedback, you can work with your team or stakeholders to build an API contract describing how your API should function. You can use JSON schemas to document your API’s endpoint response codes and set up the contract. The contract must be accepted by all parties. Then, any changes made to the API must pass the contract test before being approved. Contract testing can be automated and incorporated into your CI/CD pipeline. Contract testing tools include Pact and Spring Cloud Contract.
-
Book notes: Turn the Ship Around!
Pact.
-
I have difficulties in unit testing
I have contract tests (https://docs.pact.io/) to ensure the integration works.
What are some alternatives?
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).
REST Assured - Java DSL for easy testing of REST services
Mockito - Most popular Mocking framework for unit tests written in Java
Testcontainers - Testcontainers is a Java library that supports JUnit tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container.
Cucumber - Cucumber for the JVM
Karate - Test Automation Made Simple
Hoverfly Java - Java binding for Hoverfly