quarkiverse / quarkus-pact

Pact is a widely-recommended framework for consumer-driven contract testing. This Quarkus extension gives the best Pact integration with Quarkus.
https://pact.io/
Apache License 2.0
11 stars 6 forks source link

Tests for other transport protocols like messaging and gRPC #14

Open holly-cummins opened 1 year ago

pooja-gajjar commented 6 months ago

Hi @holly-cummins , Is there any example/demo-implementation available for gRPC pact tests in quarkus? I see there is no direct quarkus extension to support this. I am using pact extension directly in my quarkus project and I am facing the same issue with the MockServer which you resolved with a workaround mentioned here. I am not sure how to implement a dummy server for this.

Kindly let me know if any references are available on messaging and gRPC pact tests in the quarkus project.

holly-cummins commented 4 months ago

Hi @pooja-gajjar, @edeandrea has just added gRPC pact tests to the Quarkus reference application: https://github.com/quarkusio/quarkus-super-heroes/pull/765

They may be a useful example.

edeandrea commented 4 months ago

Hi @pooja-gajjar as @holly-cummins mentioned i'm just about to merge a PR in the Quarkus Superheroes sample application which incorporates gRPC pact tests.

I will say from my experience developing these that the Pact documentation is....lacking. I was able to do what I did mostly by looking at their examples.