hello all, is there any support for perl? libs, et...
# general
u
hello all, is there any support for perl? libs, etc.
y
there is a perl pact project i’ve seen but it is capable of utilising pact standalone via the cli or has capabilities to load c code and can therefore load pact_ffi functionality small demo here https://github.com/YOU54F/hello_ffi/tree/main/perl some notes on alternative impls https://docs.pact.io/implementation_guides/other_languages#native-c-interface-integration-v2v3v4-specification-support
u
oh, nice. I was looking for something along the lines of the junit type things that are available for java, and google didn’t show me much. Is it safe to assume that it probably doesn’t exist (in the wild)?
y
i did a similar hunt a while back and no bueno, I’m afraid :( would be a case of roll your own, but we can definitely aid in supporting if required.
u
that’d be great, am I right in thinking that the core bit is implementing a pact writer + a bit of support around a perl testing framework?
y
Mainly around writing a consumer facing DSL which exposes the mock server capabilities (consumer side testing) and provider verifier capabilities (provider side testing) Then mapping these dsl’s to the native ffi functions. There is some lifecycle handling to consider, it usually best to look at the one of the implementations that wraps the FFI (pact-js-core / pact-net / pact-php v10 alpha) and having a look at the https://github.com/pact-foundation/pact-compatibility-suite which can be used to verify a client languages parity at implementing the pact feature set. It’s written in cucumber (the compat suite) and @Jo Laing knows the maintainer of the perl cucumber implementation aswell
u
oh, neat!
I think for now we need consumer support for perl, so we’d likely focus on this side of things first. Still unsure what’s to happen, but it looks like we’d have to write the support ourselves, which is good to know.