We're consolidating the WireMock websites, so you might have been redirected here from wiremock.org. WireMock remains committed to open source, and nothing else is changing.
WireMock open source
The core WireMock engine, free and open source. Self-host or embed in your code.
Everything you need to run WireMock OSS is here.
Browse the docs, get the source code, or connect with the community.
Get Started
Add the following to your project's pom.xml dependencies:
<dependency>
<groupId>org.wiremock</groupId>
<artifactId>wiremock</artifactId>
<version>3.13.2</version>
<scope>test</scope>
</dependency> Then follow the next steps for JUnit 5+ or plain Java.
Add the following to your project's build.gradle:
testImplementation "org.wiremock:wiremock:3.13.2" Then follow the next steps for JUnit 5+ or plain Java.
Add the following to your project's build.gradle.kts:
testImplementation("org.wiremock:wiremock:3.13.2") Then follow the next steps for JUnit 5+ or plain Java.
Add the following to your project’s build.sbt:
libraryDependencies +=
"org.wiremock" % "wiremock" % "3.13.2" % Test Download the latest standalone JAR then run the following in a terminal:
java -jar wiremock-standalone-3.13.2.jar Learn more in the running standalone guide.
Run the following in a terminal:
docker run -it --rm \
-p 8080:8080 \
--name wiremock \
wiremock/wiremock:3.13.2 Learn more in the Docker guide.
What is WireMock?
WireMock is a popular tool to simulate APIs and software dependencies, typically used by teams that need more power and functionality compared to simple mocking. It allows you to test applications without dependencies, simulate edge cases, and develop dependent features in parallel.
Key Features
-
HTTP Mocking and Matching
Stub HTTP responses and match requests using URL patterns, headers, query parameters, cookies and request body content.
-
Dynamic Response Templating
Generate dynamic responses using Handlebars templating with request data, random values, and custom helpers.
-
Record & Playback
Record interactions with real services and play them back during testing for realistic scenarios.
-
Fault Simulation
Simulate network faults, delays, and malformed responses to test your application's resilience.
-
Request Verification
Verify that your application made the expected requests with the correct parameters and timing
-
Extensible
Extend WireMock with custom request matchers, response transformers, and admin API extensions.
-
Standalone Server
Run as a standalone process, embedded in tests, or deployed as a service in any environment
-
Testing Integrations
Seamless integration with JUnit and other testing frameworks for easy test automation.
Join Our Thriving Community
Connect with thousands of developers, get help, and contribute to the future of API mocking
Need more than open source?
WireMock Cloud builds on the open source engine and adds collaboration, advanced features, and AI.