Hi Team, I am a QE engineer and I would like to in...
# general
a
Hi Team, I am a QE engineer and I would like to introduce Contract testing to our team. In our service which I have taken for writing a POC using Pact, we make thrift RPC calls to other services. How can I write a Pact contract test for Thrift calls? I request you to guide me on this.
👋 1
m
Hi Anandhi! We don’t currently support Thrift. You could create a plugin for it (see https://docs.pact.io/plugins) however the plugin framework is still in its infancy - what language do your teams use to write the Thrift calls?
a
HI Matt, Thank you very much for your response. Our teams use Scala and Typescript to write the Thrift calls.
We have a library that generates Typescript from Thrift IDL files. Our framework calls that library internally, not directly. In that case, if I use the same Thrift calls in my Pact tests, it should work?
I am exploring the other options. Do we have write Pact tests closes to the dev code? Can we write in a different repo using Pact/Cypress. Would it still serve the purpose? Sorry for my ignorance here. I am still learning.