Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/surpher/pact-consumer-swift-multiple-providers
An example how to use pact-consumer-swift to test multiple providers
https://github.com/surpher/pact-consumer-swift-multiple-providers
Last synced: about 1 month ago
JSON representation
An example how to use pact-consumer-swift to test multiple providers
- Host: GitHub
- URL: https://github.com/surpher/pact-consumer-swift-multiple-providers
- Owner: surpher
- License: mit
- Created: 2020-06-03T22:42:46.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-06-04T23:17:32.000Z (over 4 years ago)
- Last Synced: 2024-10-03T05:06:48.363Z (about 2 months ago)
- Language: Swift
- Size: 18.6 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pact-consumer-swift-multiple-providers
An example how to use [pact-consumer-swift](https://github.com/DiUS/pact-consumer-swift) to test multiple providers with external Ruby dependency (ie: [pact-ruby-standalone](https://github.com/pact-foundation/pact-ruby-standalone)).> Due to the limitation of how the underlying mock server works (the Ruby Pact Mock Server), one instance of the mock service should be for one provider. Most other pact implementations start and stop the mock service as part of the test framework, however this is not possible when running in a sandboxed environment like the iOS simulator.
>
> The usual workaround that people use is to start multiple mock servers up at the beginning of the test phase running on different ports.[https://github.com/DiUS/pact-consumer-swift/issues/98#issuecomment-63850369](https://github.com/DiUS/pact-consumer-swift/issues/98#issuecomment-63850369)