DiUS / pact-consumer-swift

A Swift / ObjeciveC DSL for creating pacts.
MIT License
98 stars 43 forks source link

Can't specify location of pact log and pacts directory #124

Closed tsfischer closed 3 years ago

tsfischer commented 3 years ago

I need to use a custom pact folder for CI purposes. For now, I'm using the default Scheme Pre-action:

pact-mock-service start --pact-specification-version 2.0.0 --log "${SRCROOT}/tmp/pact.log" --pact-dir "${SRCROOT}/tmp/pacts" -p 1234

However whenever I run the tests, the files are going to my built products dir under Derived Data, in a folder called 'pact'

I can't find anywhere where I can override this, and the docu implies it's set in the script above. Any help would be greatly appreciated.

tsfischer commented 3 years ago

OK this was user error (I'm not surprised).

There was a pact-server already running on my machine (not sure why, but it must have not stopped properly after a test run). That was pointing to the old location, and any attempts to start a new server were erroring out, but those errors were getting eaten. Bleah.