# WireMock **Repository Path**: xxreach/WireMock ## Basic Information - **Project Name**: WireMock - **Description**: WireMock 是一个灵活的库用于 Web 服务测试,和其他测试工具不同的是,WireMock 创建一个实际的 HTTP服务器来运行你的 Web 服务以方便测试 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: https://www.oschina.net/p/wiremock - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 3 - **Created**: 2022-05-28 - **Last Updated**: 2022-05-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README WireMock - a web service test double for all occasions ====================================================== [![Build Status](https://github.com/tomakehurst/wiremock/actions/workflows/build-and-test.yml/badge.svg)](https://github.com/tomakehurst/wiremock/actions/workflows/build-and-test.yml) [![Maven Central](https://img.shields.io/maven-central/v/com.github.tomakehurst/wiremock-jre8.svg)](https://search.maven.org/artifact/com.github.tomakehurst/wiremock-jre8) !!! Log4j notice !!! -------------------- WireMock only uses log4j in its test dependencies. Neither the thin nor standalone JAR depends on or embeds log4j, so you can continue to use WireMock 2.32.0 and above without any risk of exposure to the recently discovered vulnerability. Key Features ------------ - HTTP response stubbing, matchable on URL, header and body content patterns - Request verification - Runs in unit tests, as a standalone process or as a WAR app - Configurable via a fluent Java API, JSON files and JSON over HTTP - Record/playback of stubs - Fault injection - Per-request conditional proxying - Browser proxying for request inspection and replacement - Stateful behaviour simulation - Configurable response delays Full documentation can be found at [wiremock.org](http://wiremock.org/ "wiremock.org") Questions and Issues -------------------- If you have a question about WireMock, or are experiencing a problem you're not sure is a bug please post a message to the [WireMock mailing list](https://groups.google.com/forum/#!forum/wiremock-user). On the other hand if you're pretty certain you've found a bug please open an issue. Contributing ------------ We welcome bug fixes and new features in the form of pull requests. If you'd like to contribute, please be mindful of the following guidelines: * All changes should include suitable tests, whether to demonstrate the bug or exercise and document the new feature. * Please make one change per pull request. * If the new feature is significantly large/complex/breaks existing behaviour, please first post a summary of your idea on the mailing list to generate a discussion. This will avoid significant amounts of coding time spent on changes that ultimately get rejected. * Try to avoid reformats of files that change the indentation, tabs to spaces etc., as this makes reviewing diffs much more difficult. * Abide by [the Architecture Rules](https://github.com/wiremock/wiremock/tree/master/src/test/java/com/github/tomakehurst/wiremock/archunit) enforced by ArchUnit. Building WireMock locally ------------------------- To run all of WireMock's tests: ```bash ./gradlew clean test ``` To build both JARs (thin and standalone): ```bash ./gradlew jar shadowJar ``` The built JAR will be placed under ``build/libs``. To publish both JARs to your local Maven repository: ```bash ./gradlew publishToMavenLocal ```