support pact generation when setting up mock with wiremock

107 views
Skip to first unread message

Constantin J.

unread,
Jul 30, 2021, 5:15:59 AM7/30/21
to wiremock-user
hey, so there is a useful project called pact which we use often, however it is sometimes really tricky to use since the validation part is kinda confusing.

WireMock on the other hand has a really awensome log output and is in general super easy to setup and use.

I was wondering if it is possible to create some sort of Plugin that can utilise the `MappingBuilder` to create a pact too. 

Basically I want to use WireMock to create pacts and do the consumer side testing.

What do you think of this idea? 

Tom Akehurst

unread,
Aug 11, 2021, 9:10:57 AM8/11/21
to wiremock-user
I've not tried it, but it sounds like this does what you're suggesting: https://bitbucket.org/atlassian/wiremock-pact-generator

Jamie Tanna

unread,
Sep 12, 2021, 3:18:52 AM9/12/21
to wiremock-user
If you've not seen, Spring Cloud Contract produces Wiremock mocks from generated contracts, and also can output Pacts - may be worth a look :)
Reply all
Reply to author
Forward
0 new messages