WireMocha is an IntelliJ-based plugin that provides framework integration for the WireMock library.
It offers various tools to generate and validate WireMock related test code, and to provide additional contextual information in the following areas (the list is not comprehensive):
- JSON stub mapping files:
- JSON schemas attached to stub mapping files for code completion and validation
- Handlebars helpers: validation, code completion and navigation
- Language injections in the JSON and Java DSLs
- On-the-fly conversion of JSON stub mapping files to the Java DSL
- Create, split and merge selected mapping objects and mapping files
- Request-response summary of mapping files in the Project View
- Java DSL:
- JUnit 4 and JUnit 5 support
- Testcontainers support
- Handlebars and other language injections
- Other features:
- WireMock tool window with an Admin API client and a tool for Scenario generation
- Various WireMock-specific static code analysis checks
- Other features for code generation, optimization, navigation and more
The plugin is available via a paid license, and you can head over to the JetBrains Marketplace to get your hands on one. You can find more information about pricing and licensing options there, including a 14-day trial period.
The list of supported IDEs include all free versions of IntelliJ (Community, Educational, etc.) as well as Ultimate.
The documentation is available on its dedicated website.
This project derives some built-in documentation and specifications from the WireMock open source project. This content is licensed under the Apache License v2.