Hi people, Is it possible to do pact testing with ...
# pact-jvm
h
Hi people, Is it possible to do pact testing with the use of pact files available on local if pact broker is not reachable or accessible or based on some configuration?
m
Yes, but how would you know if you're validating the correct pact?
Any logic in the broker would be hard to replicate locally, so just keep it in mind
You can verify files locally, on an http server or via a pact broker
h
@Matt (pactflow.io / pact-js / pact-go) it is of the case when pact broker is not available for the local development environment ,but for the upper environments we have that pact broker setup. Is there any kind of configuration or switch to toggle between pact files or with pact broker setup, so that the build doesn't fail in case of any pact broker unavailability
m
Yes, there are annotations to read from a local pact file vs a broker
I’m not sure what you mean by “local” vs “upper”. You should have a single pact broker for all environments, that’s how it’s supposed to be used