Hi, team:wave: we are using pact contract test and...
# general
a
Hi, team👋 we are using pact contract test and many of our consumers are developed by Perl, is there any official support on Perl language?
m
😱
💯 1
I mean, no we don’t sorry
a
Thanks for reply, that really help, I saw the example by using HTTP and the pact-mock-service tool and I have a question: Is there a way to generate looser match rules by something like DSL in this solution ?
m
Sorry this isn’t ideal, but you can. When you send requests to the mock service to setup the interaction, values that need matching rules can be given specific JSON objects that contain the matching rule definitions. See https://github.com/pact-foundation/pact-js/blob/9.x.x/src/dsl/matchers.ts for the matching rules available (and how to serialise them) properly
t
What you could maybe do is write your tests in one of the supported languages (eg JS), and then have a call out to a perl script that just invokes the relevant bit of your client code
whether that is a good idea or not depends on the rest of your ecosystem
a
Thanks, that make sense. Do we have a plan to implement pact features in Perl ?
👎 1
🐒 1