Learn how to run your Cypress tests in your CI/CD pipelines.
Running tests in CI/CD is very similar to the way you run the tests from your local machine.
You can specify the auth and local-testing related settings via environment
variables as well, instead of hard-coding them in
browserstack.json. This makes
it easier for you to test using the appropriate settings depending on whether
you are running from your local machine or from your CI setup.
The CLI currently reads config from the following environment variables:
|Env variable||Accepted values|
||Your BrowserStack username|
||Your BrowserStack access key|
||The Local identifier you want to use|
Starting from v1.4.0, the CLI now generates a
log/build_results.txt file that
contains 2 lines with the details of the build ID, and the dashboard URL like
Set up an application server like you normally would (for example, you probably
would host the app on
But, additionally, you’ll have to set up a Local Testing connection. Make sure the local testing connection is established before running the tests, and is alive at least until all the tests are done running. In most cases, this means that:
Contact our Support team for immediate help while we work on improving our docs.