pact-foundation / pact-jvm

JVM version of Pact. Enables consumer driven contract testing, providing a mock service and DSL for the consumer project, and interaction playback and verification for the service provider project.
https://docs.pact.io
Apache License 2.0
1.08k stars 479 forks source link

Pending flag is ignored in JUnit 5 for non REQUEST_RESPONSE verifications causing build to fail #1459

Open xpinjection opened 2 years ago

xpinjection commented 2 years ago

It seems that the pending flag is always set to 'false' in JUnit 5 PactVerificationContext:

https://github.com/pact-foundation/pact-jvm/blob/d014fb03bea70ff14e2391df244440811c7613c9/provider/junit5/src/main/kotlin/au/com/dius/pact/provider/junit5/PactVerificationContext.kt#L106

xpinjection commented 2 years ago

Looks similar to the already discussed issue #1417.