- Install pact-go v2.x.x
go install github.com/pact-foundation/pact-go/v2@2.x.x
- Install pact-go as a dev dependency
sudo pact-go -l DEBUG install
- Run consumer test
go test -run ^TestConsumerV3$ consumer_test.go
- Run provider test at least 5 times consecutively and check whether any test execution hangs.
go test -timeout 30s -run ^TestV3HTTPProvider$ .