Open Sumedh31 opened 4 years ago
Can you try upgrading to the latest version (currently it is 4.1.6)?
Also, if you are using unit tests, you don't need to run the Gradle pactVerify
task, as the tests will run as part of the normal unit test run (via Gradle check
-> test
) tasks.
The gradlew pactVerify command does not verify contracts with following setup. Gradle version -5.2.1 "au.com.dius.pact" version "4.1.0" The provider returns asynchronus message (it returns messages by consuming evens from message queues hence not a typical API ) The provider test is as follows:
The test runs fine when running it via command ' .\gradlew test --tests *serviceprovider' Exception is as follows:
Note: The publisher configurations is able to publish contracts using gradlew pactPublish command. It seems that the PactVerification enum in providerverifier.kt is not able to set value to "ANNOTATED_METHOD" and hence the failure.
I also checked by adding some logging to see if at least able to acknowledge the @PactVerifyProvider tag or not and it did not.