Just a quick question - which may or may not be daft (avert eyes now lol). If i created some microservices in say Python. Is there anything to stop you writing the consumer or the producer tests in say javascript?
b
Boris
06/20/2022, 1:30 AM
nothing to stop you from writing consumers & providers in different languages . . . but writing tests in a different language than the code that they're testing sounds a bit futile
j
John Williams
06/20/2022, 1:53 AM
ah good to know thanks. a couple of reasons for that just want try a few things out in a few different languages
party parrot 1
m
Matt (pactflow.io / pact-js / pact-go)
06/20/2022, 2:38 AM
I’d say writing the consumer tests in JS for a python code base will be really hard - consumer tests are really meant to be unit tests. So you can see why this would be hard
☝️ 1
Matt (pactflow.io / pact-js / pact-go)
06/20/2022, 2:38 AM
provider side is usually a little higher level, so it would be possible, but still awkward. We do have CLI tools that work this way, so it’s up to how you work
j
John Williams
06/20/2022, 2:59 AM
ill try out python first maybe ill write anotehr server in javascrip provider to test out the js