Mira Kim
04/29/2022, 4:22 AMfailed - Failed to verify Pact! Actual request does not match expected interactions...
Reason:
Missing request
Expected:
GET /products
Mira Kim
04/29/2022, 4:23 AMMira Kim
04/29/2022, 4:24 AMMatt (pactflow.io / pact-js / pact-go)
Mira Kim
04/29/2022, 4:25 AMMira Kim
04/29/2022, 4:27 AMMatt (pactflow.io / pact-js / pact-go)
GET
request to /products
on the pact mock server, but it did not receive oneMatt (pactflow.io / pact-js / pact-go)
Mira Kim
04/29/2022, 7:09 AMMira Kim
04/29/2022, 7:10 AMMatt (pactflow.io / pact-js / pact-go)
Sarah Stenhouse
05/09/2022, 1:20 PMMarko (IttyBittyApps / pact-swift)
05/10/2022, 6:35 AM/tmp/pacts
If you set up a PACT_OUTPUT_DIR
environment variable (in Run > Arguments tab of your scheme) then it should be written in that folder. I normally set it to $(PROJECT_DIR)/tmp/pacts
If testing a macOS project, then pact files are written into Documents
folder of your app's sandbox.
If testing a non-Xcode project (Linux), set the env var PACT_OUTPUT_DIR
to where you want the file to be written.
https://github.com/surpher/PactSwiftToolbox/blob/main/Sources/PactSwiftToolbox/PactFileManager.swiftMarko (IttyBittyApps / pact-swift)
05/10/2022, 6:46 AMinit
on MockService
class that allows you to pass in a URL
of your directory. Have you tried that?
https://github.com/surpher/PactSwift/blob/6c9c3a1b9142e353781e5f589bcb9db8895ca38d/Sources/MockService.swift#L62Sarah Stenhouse
05/10/2022, 8:56 PMfailed - Failed to verify Pact! Actual request does not match expected interactions...
Reason:
Missing request
Expected:
GET /products
When I run the test, I see that the base url has been replaced by the mock server url so I'm not sure why it wouldn't be communicating with the pact server.Marko (IttyBittyApps / pact-swift)
05/11/2022, 2:57 AMMatt (pactflow.io / pact-js / pact-go)