wiremock

A tool for mocking HTTP services

Github星跟蹤圖

WireMock - a web service test double for all occasions

Build Status
Maven Central

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

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.

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.

Building WireMock locally

To run all of WireMock's tests:

./gradlew clean test

To build both JARs (thin and standalone):

./gradlew -c release-settings.gradle :java8:shadowJar

The built JAR will be placed under java8/build/libs.

主要指標

概覽
名稱與所有者wiremock/wiremock
主編程語言Java
編程語言Shell (語言數: 7)
平台
許可證Apache License 2.0
所有者活动
創建於2011-10-09 20:27:24
推送於2025-08-04 05:10:52
最后一次提交2025-07-29 12:38:04
發布數157
最新版本名稱3.13.1 (發布於 )
第一版名稱release-1.14 (發布於 2012-02-12 19:04:28)
用户参与
星數6.9k
關注者數135
派生數1.5k
提交數4k
已啟用問題?
問題數1545
打開的問題數409
拉請求數1045
打開的拉請求數45
關閉的拉請求數481
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?