Skip to content

How to reuse a pact.v3.Pact in consumer testing #959

Answered by mefellows
lotruheawea asked this question in Q&A
Discussion options

You must be logged in to vote

What is the proposed (by pact) naming convention of interaction descriptions in order to avoid that? I assume there is none, so the user must handle that.
...
It is left to the user to ensure that descriptions of interactions are unique for differing interaction properties

The description of the interaction is an essential aspect of Pact. It's key to the BDD and "specification by example" elements of the test. Pact is not a general purpose API testing automation solution, it's a targeted contract testing solution - the descriptions (along with the states or "pre-conditions") are the basis for explaining the scenario being tested.

That is to say that the description is for human comprehe…

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
9 replies
@lotruheawea
Comment options

@JP-Ellis
Comment options

@lotruheawea
Comment options

@mefellows
Comment options

Answer selected by JP-Ellis
@lotruheawea
Comment options

@tu-pm
Comment options

@JP-Ellis
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants