1 Star 0 Fork 3

欢天喜地 / WireMock

forked from Gitee 极速下载 / WireMock 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
CONTRIBUTING.md 2.55 KB
一键复制 编辑 原始数据 按行查看 历史
Tom Akehurst 提交于 2022-04-01 18:31 . Updated CONTRIBUTING.md

Contributing to WireMock

WireMock exists and continues to thrive due to the efforts of over 150 contributors, and we continue to welcome contributions to it evoltion.

Ways to contribute

You can help make WireMock a better tool in a number of ways:

  • Write or improve documentation.
  • Join the community Slack channel, help other WireMock users and share tips.
  • Raise an issue if you discover a bug.
  • Contribute bug fixes, new features or enhancements.

Before opening a PR

When proposing new features or enhancements, we strongly recommend opening an issue first so that the problem being solved and the implementation design can be discussed. This helps to avoid time being invested in code that is never eventually merged, and also promotes better designs by involving the community more widely.

For straightforward bug fixes where the issue is clear and can be illustrated via a failing unit or acceptance test, please just open a PR.

Code style

WireMock uses the Google Java style guide and this is enforced in the build via the Gradle Spotless plugin.

When running pre-commit checks, if there are any formatting failures the Spotless plugin can fix them for you:

./gradlew spotlessApply

There's also an IntelliJ plugin for the same purpose.

Testing

WireMock has a fairly comprehensive test suite which ensures it remains robust and correct as the codebase envolves.

In particular, there are acceptance tests for almost all features, where a full WireMock server is started up and tested via its public APIs.

New features should by default come with acceptance tests covering the major positive and negative cases. Unit tests should also be used judiciously where non-trivial logic would benefit from finer-grained checking.

When making performance enhancements a representative benchmark test should be developed using an appropriate tool, and the results before and after applying the change attached to the associated PR.

Writing documentation

WireMock's documentation is publised on wiremock.org, which is a static website built using Jekyll.

Documentation can be added or modified by cloning https://github.com/wiremock/wiremock.org-sources, working with the Markdown documents under the _docs directory, then raising a PR when ready to have you changes published.

Java
1
https://gitee.com/xxreach/WireMock.git
git@gitee.com:xxreach/WireMock.git
xxreach
WireMock
WireMock
master

搜索帮助