Chris
01/10/2024, 11:59 PMbeforeEach
creating the supertest instance or standing up the test server on a random ephemeral port
2. the actual provider test in a describe/it block
3. afterEach
tearing down the supertest instance or standing down the test serverMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Slackbot
01/11/2024, 12:08 AMMatt (pactflow.io / pact-js / pact-go)
Slackbot
01/11/2024, 12:08 AMMatt (pactflow.io / pact-js / pact-go)
Chris
01/11/2024, 12:14 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Chris
01/11/2024, 12:21 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
I don’t think that concurrency concern is a problem, because the Pact verifier doesn’t run those tests concurrentlyto elaborate, consider a scenario that is in conflict with another scenario. State 1: There are products State 2: There are no products Running those two examples concurrently is likely to break a scenario attached to one of them
Chris
01/11/2024, 12:35 AMChris
01/11/2024, 1:08 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Is it assumed and a constraint on the provider side that you only ever have a single verifier running all contracts from all consumers against it sequentially?you could run the verification process multiple times (and in parallel), by having each verification only verify a subset of consumers or branches (or whatever selectors you choose)