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

Executing cypress using cli #29

Closed
krishvv opened this issue Apr 16, 2019 · 2 comments
Closed

Executing cypress using cli #29

krishvv opened this issue Apr 16, 2019 · 2 comments

Comments

@krishvv
Copy link

krishvv commented Apr 16, 2019

Hi ,

I have followed the steps and was able to successfully use this plugin . Thanks .
How do i execute this using cli? This is needed in our cases for end to end execution

Regards,
Krish

@krishvv
Copy link
Author

krishvv commented Apr 16, 2019

Hi . I figured out how to do this :)
1.npm run ntlm-proxy
2.node_modules.bin\cypress-ntlm run --browser chrome --spec <spec.js>

@krishvv krishvv closed this as completed Apr 16, 2019
@bjowes
Copy link
Owner

bjowes commented Apr 16, 2019

Hi @krishvv , I'm glad you figured it out. This is pretty much identical to what I recommended in the README for package.json scripts:

"cypress-ntlm": "npm run ntlm-proxy && cypress-ntlm open && ntlm-proxy-exit"

Two notes:

  1. With your two steps, you aren't closing the ntlm-proxy after test execution. Not a big issue since the next time you start the ntlm-proxy it will terminate the old one, but I just think it is more clean to close it afterwards. The command ntlm-proxy-exit is there for this purpose
  2. For automated CI use, I would recommend running in headless mode. Currently only electron is supported by Cypress for this, but work is ongoing to support Chrome in headless mode

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

No branches or pull requests

2 participants