Jane Wheatley
10/31/2022, 6:17 PMYousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
Jane Wheatley
10/31/2022, 7:54 PMJane Wheatley
10/31/2022, 7:56 PMYousaf Nabi (pactflow.io)
finalized
vs pending
then you can setup tests for that, but only if they are because of specific client logic, otherwise you can just have one test. You don't want to be looking to functionally cover all cases for the provider.Jane Wheatley
11/03/2022, 6:33 PMJane Wheatley
11/03/2022, 6:35 PMYousaf Nabi (pactflow.io)
Jane Wheatley
11/03/2022, 8:57 PMLucas Dicesaro
11/03/2022, 8:58 PMLucas Dicesaro
11/03/2022, 9:21 PMLucas Dicesaro
11/03/2022, 9:31 PMwebmock
gem (see Comparisons with other tools) in our unit tests (ruby specs). If we want a client (consumer side) to be validated with Pact we should make a copy of that client to point it to the Pact mock service. What is the best practice here? Should we make a copy, or should we replace webmock
for that client?
⢠When we define specs on the Consumer side, and we want to generate a pact file, we need to define the request body/response body/headers and finally, execute the code. That's fine. The thing is that we need to code trivial expectations (according to the documentation) too. I understand the expectation on functional tests. But in these cases, there is no a complex logic in the middle, we are testing the Pact tool itself. What is the purpose to create expectations of something we defined a few lines above?
I await your responses. ThanksJane Wheatley
11/04/2022, 4:18 PMLucas Dicesaro
11/04/2022, 4:51 PMJane Wheatley
11/04/2022, 7:13 PM