Code, articles and videos related to WireMock from around the web.
WireMocha is a WireMock plugin for IntelliJ:
https://plugins.jetbrains.com/plugin/18860-wiremochaMark Winteringham wrote a very handy Chrome extension to provide a UI over WireMock:
http://www.mwtestconsultancy.co.uk/wiremock-chrome-extension/Spring Contract Verifier (previously called Accurest) is a consumer driven contracts tool that generates WireMock stub mappings as examples for client testing.
http://cloud.spring.io/spring-cloud-contract/A Spring REST Docs integration for WireMock that generates WireMock stub mappings from your test cases:
https://github.com/epages-de/restdocs-wiremockWireMock Maven Plugin:
https://github.com/automatictester/wiremock-maven-pluginMaciej Walkowiak has built a library providing zero-config, fully declarative Spring Boot integration with WireMock in JUnit 5 tests:
https://github.com/maciejwalkowiak/wiremock-spring-boot@GenerateWireMockStub for Spring REST controllers, built by Lukasz Gryzbon, makes the creation of WireMock stubs for tests safe and effortless:
https://github.com/lsd-consulting/spring-wiremock-stub-generatorSimulate webhooks with this extension:
https://github.com/wiremock/wiremock-webhooks-extensionSome folks at Open Table have written a response transformer for injecting data from the request body into the response:
https://github.com/opentable/wiremock-body-transformerIn a similar vein, Adam York has written a response transformer utilising Velocity templates:
https://github.com/adamyork/wiremock-velocity-transformerMason Malone has built an extension for matching requests based on the contents of JSON web tokens:
https://github.com/MasonM/wiremock-jwt-extensionAlso from Mason, an extension for finding and removing unused stub mappings:
https://github.com/MasonM/wiremock-unused-stubs-extensionFelipe Fernández has built a Spock extension to enhance automation around record and replay functionality:
https://github.com/felipefzdz/spock-wiremock-extensionAutomate configuration of stubs, given JAX-RS annotated resources, with this extension:
https://github.com/tomasbjerre/wiremock-jaxrsMonitor JVM metrics and wiremock response time:
https://github.com/rasklaad/wiremock-metricsPHP client by Rowan Hill:
https://github.com/rowanhill/wiremock-phpRuby wrapper by Jeffres S. Morgan:
https://rubygems.org/gems/service_mockGroovy binding by Tom Jankes:
https://github.com/tomjankes/wiremock-groovyPython client by Cody Lee:
https://pypi.python.org/pypi/wiremock/1.1.1NodeJS wrapper:
https://www.npmjs.com/package/wiremockNodeJS + TypeScript client:
https://www.npmjs.com/package/wiremock-captainSam Edwards has been hugely helpful in getting WireMock onto the Android platform and helping others do so. Here is his blog post explaining how to write an Espresso test using WireMock as your app's back-end:
http://handstandsam.com/2016/01/30/running-wiremock-on-android/Dusan Dević at Yenlo wrote a useful guide to testing error conditions in the WSO2 ESB using Wiremock:
https://www.yenlo.com/blog/wso2torial-error-handling-in-wso2-esb-with-wiremockPhill Barber has written a couple of interesting posts about practical testing scenarios with WireMock:
http://phillbarber.blogspot.co.uk/2015/05/how-to-write-end-to-end-tests-for-nginx.html http://phillbarber.blogspot.co.uk/2015/02/how-to-test-for-connection-leaks.htmlBas Dijkstra kindly open sourced the content for the workshop he ran on WireMock and REST Assured:
http://www.ontestautomation.com/open-sourcing-my-workshop-on-wiremock/@GenerateWireMockStub for Spring REST controllers, built by Lukasz Gryzbon, makes the creation of WireMock stubs for tests safe and effortless:
https://dzone.com/articles/wiremock-the-ridiculously-easy-wayWireMock workshop:
https://github.com/basdijkstra/wiremock-workshopFluent and thorough live-coding demonstration of WireMock delivered by Sam Edwards at DevFest DC:
https://youtu.be/x3MvZ8DFrpESebastian Daschner presents a step-by-step guide to running your acceptance tests in Kubernetes using WireMock:
https://blog.sebastian-daschner.com/entries/acceptance_tests_wiremock_kubernetesInteresting and detailed presentation by Lotte Johansen on testing microservices with WireMock at Norway's top online marketplace:
https://www.youtube.com/watch?v=cmJfMnGK-r0Chris Batey did an excellent talk at Skillsmatter in London about building fault tolerant microservices. He showed some practical failure testing strategies using WireMock and Saboteur he'd used for real while working at Sky:
https://skillsmatter.com/skillscasts/5810-building-fault-tolerant-microservicesDaniel Bryant's excellent QCon presentation “The Seven Deadly Sins of Microservices” covers the full gamut of microservice anti-patterns seen in the wild, with some sound advice on how to fix them. WireMock and Saboteur get an honourable mention in the testing discussion:
https://www.infoq.com/presentations/7-sins-microservicesThe folks at Intuit have built a very impressive and ambitious testing setup, using WireMock to isolate individual services. Here's a talk they did at AWS:Reinvent:
https://www.youtube.com/watch?list=PLhr1KZpdzuke5pqzTvI2ZxwP8-NwLACuU&v=sUsh3EnzKKkMichael Bailey was the first person to publicly demonstrate the possibility of running WireMock on Android. Here's his presentation at Google's GTAC conference on the testing setup used by his team at Amex:
https://www.youtube.com/watch?v=-xQCNf_5NNMTom and Rob Elliot gave a join talk at Skillsmatter about patterns for readable and scalable tests with WireMock, and an approach for unit testing a CDN:
https://skillsmatter.com/skillscasts/6853-scalable-management-of-test-data-making-tests-readable