Agent Configuration
Changing cypress agent configuration
You can easily set cypress API server URL by using NPMcy2 package. Read more.
Find cypress installation path
1
DEBUG=cypress:* cypress version
2
3
# here it is
4
cypress:cli Reading binary package.json from: /Users/john/Library/Caches/Cypress/3.4.1/Cypress.app/Contents/Resources/app/package.json +0ms
Copied!
In my case it is: /Users/john/Library/Caches/Cypress/6.3.0/Cypress.app/Contents/Resources/app/
Change the default dashboard URL - use the director service URL
1
$ cat /Users/john/Library/Caches/Cypress/3.4.1/Cypress.app/Contents/Resources/app/packages/server/config/app.yml
2
3
...
4
# Replace this with a URL of the alternative dashboard
5
production:
6
# api_url: "https://api.cypress.io/"
7
api_url: "http://localhost:1234/"
8
...
Copied!
Make sure to change the configuration on every machine that runs cypress test in your CI environment
Copy link
Edit on GitHub