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

Setting loopback in .airtap.yml breaks local tests #77

Closed
jhiesey opened this issue Feb 22, 2018 · 5 comments
Closed

Setting loopback in .airtap.yml breaks local tests #77

jhiesey opened this issue Feb 22, 2018 · 5 comments
Projects
Milestone

Comments

@jhiesey
Copy link
Member

jhiesey commented Feb 22, 2018

I added loopback: airtap.local for use in travis, but this makes local tests not work unless I add airtap.local to my hosts file.

@vweevers vweevers added this to Todo in Airtap Feb 22, 2018
@vweevers
Copy link
Member

One option is to use a command line argument instead (--loopback airtap.local). We should update the upgrade guide to reflect this.

Would it make sense to only consider the loopback option if process.env.CI is defined? I.e. don't apply it if running tests locally.

@jhiesey
Copy link
Member Author

jhiesey commented Feb 22, 2018

My guess is that only using the loopback option when process.env.CI is defined is the right behavior, but I'm not sure if there's another use case for loopback that I don't know about.

For now the command line workaround works for me.

@feross
Copy link
Member

feross commented Feb 23, 2018

I think we should have smart defaults wherever possible, so I'm +1 for only using loopback when on CI. Unless I'm missing some other use case?

Or, to be explicit, what if we rename the option to --loopback-ci?

@vweevers
Copy link
Member

There is no other use case, that we know of. So +1 to renaming.

Personally I prefer --ci-loopback, symmetrical to a nested option in YAML:

ci:
  - loopback: airtap.local

Which, random thought, could also mean any option is valid here - as a general way of saying "I only want to apply these when on CI". E.g.:

ci:
  - loopback: airtap.local
  - coverage: false

@vweevers
Copy link
Member

Come to think of it, --loopback is not an option for CI per se. It's for Sauce Connect, which you also need when starting Sauce Labs tests from your local machine.

@vweevers vweevers added this to the v1 milestone May 25, 2018
@vweevers vweevers moved this from Todo to Review in Airtap Jul 6, 2018
Airtap automation moved this from Review to Done Jul 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Airtap
  
Done
Development

No branches or pull requests

3 participants