In the situation where we have an API provider and...
# general
j
In the situation where we have an API provider and an API consumer, are there any recommendations for which tool to use to generate pact files? Most of the workshops seems to be focused on a web app consumer. While we could theoretically just use Cypress to do the API testing and use the cypress-pact adapter to generate the pact file I'm just curious what others have used in the past with success.
m
Normally you’d just use Pact. The Cypress pact adapter is really only best suited when using Pactflow’s BDCT workflow, because it doesn’t use matchers etc. So it will result in brittle tests if you use Pact to verify them. Does this help or did I misunderstand the question?
j
Nope that answers it! I did forget to specify were specifically using the bi-directional testing model, which is why I suggested the Cypress-pact adapter as one of our tooling solutions.
👍 1
With that in mind, is Pact still preferable to use over Cypress for BDCT? Do any workshops exist for using bi-directional between APIs providers/consumers?
m
With that in mind, is Pact still preferable to use over Cypress for BDCT?
The answer is always “it depends”. BDCT is faster/easier, Pact has better guarantees
j
Ill take a look at these, thanks!
🙌 1