Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remote mock server #119

Open
batuhansener opened this issue Feb 11, 2021 · 1 comment
Open

Remote mock server #119

batuhansener opened this issue Feb 11, 2021 · 1 comment
Labels

Comments

@batuhansener
Copy link

Hi, are there any ways to run the mock service provider on a remote server so that anyone working the project will run their test connecting to that server and not being have to install pact-ruby-standalone?

@surpher
Copy link
Contributor

surpher commented Feb 11, 2021

Yes. When setting up your MockService object in your tests, you can set a baseURL for your remote server instead of localhost (or 127.0.0.1).

Although it might be a bit tricky with the way pact-ruby-standalone works, if you would choose to use it as your mock server. #98 I personally haven't tried to set it up, but am very curious what you find out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants