{"id":15481902,"url":"https://github.com/surpher/pact-consumer-swift-multiple-providers","last_synced_at":"2025-03-28T14:32:17.386Z","repository":{"id":186109492,"uuid":"269209730","full_name":"surpher/pact-consumer-swift-multiple-providers","owner":"surpher","description":"An example how to use pact-consumer-swift to test multiple providers","archived":false,"fork":false,"pushed_at":"2020-06-04T23:17:32.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-19T05:19:30.081Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/surpher.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-06-03T22:42:46.000Z","updated_at":"2023-09-08T20:33:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"e13d4e9a-49f7-42a4-bfde-fb496f532a6b","html_url":"https://github.com/surpher/pact-consumer-swift-multiple-providers","commit_stats":null,"previous_names":["surpher/pact-consumer-swift-multiple-providers"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/surpher%2Fpact-consumer-swift-multiple-providers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/surpher%2Fpact-consumer-swift-multiple-providers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/surpher%2Fpact-consumer-swift-multiple-providers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/surpher%2Fpact-consumer-swift-multiple-providers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/surpher","download_url":"https://codeload.github.com/surpher/pact-consumer-swift-multiple-providers/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246046202,"owners_count":20714922,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-02T05:06:52.725Z","updated_at":"2025-03-28T14:32:17.369Z","avatar_url":"https://github.com/surpher.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pact-consumer-swift-multiple-providers\nAn 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)).\n\n\n\u003e 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.\n\u003e\n\u003e The usual workaround that people use is to start multiple mock servers up at the beginning of the test phase running on different ports.\n\n[https://github.com/DiUS/pact-consumer-swift/issues/98#issuecomment-63850369](https://github.com/DiUS/pact-consumer-swift/issues/98#issuecomment-63850369)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsurpher%2Fpact-consumer-swift-multiple-providers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsurpher%2Fpact-consumer-swift-multiple-providers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsurpher%2Fpact-consumer-swift-multiple-providers/lists"}