pact-plugins icon indicating copy to clipboard operation
pact-plugins copied to clipboard

Plugins within Junit4 consumers

Open rkrishnan2012 opened this issue 2 years ago • 1 comments

Hey folks, Is it possible to use the protobuf plugin with a Junit4 consumer? I see an example with the calculator app using Junit5, but I don't see any examples of using a plugin in Pact with Junit4 to generate a contract.

Specifically, I am trying to generate a consumer contract within an Android project (which is limited to Junit4) and the docs for pact-jvm-consumer-junit doesn't indicate we can use plugins, and the source for ConsumerPactBuilder makes no reference to plugins.

rkrishnan2012 avatar Jun 05 '23 19:06 rkrishnan2012

JUnit 4 and 5 share the same DSL, so plugins should work with Junit 4 tests.

rholshausen avatar Jul 16 '24 01:07 rholshausen