If a Pact provider verification sources multiple pact files from a broker to verify, the test results accumulate for each pass, sending additional detail along with the published results. Crucially, if any failed interactions happen all subsequent verification publishes will also have an overall status of failed.
Given
Pact file X has interactions A, B and C
Pact file Y has interactions, D, E, F.
And
verification fails for X on interaction A
Then
Two results will publish to the broker, with the following statuses:
Pact file
Overall status
A
B
C
D
E
F
X
❌
❌
✅
✅
-
-
-
Y
❌
❌
✅
✅
✅
✅
✅
Note that despite the three interactions in Y that passed, the overall status is failed because of the accumulated result from the first pact file.
If a Pact provider verification sources multiple pact files from a broker to verify, the test results accumulate for each pass, sending additional detail along with the published results. Crucially, if any failed interactions happen all subsequent verification publishes will also have an overall status of failed.
Given
And
verification fails for X on interaction A
Then
Two results will publish to the broker, with the following statuses:
Note that despite the three interactions in Y that passed, the overall status is failed because of the accumulated result from the first pact file.