Cypress framework
Configuration
2
Set Environment Variables
export CYPRESS_SL_TOKEN=<your_token> # from CI secret or vault
export CYPRESS_SL_ENABLE_REMOTE_AGENT=true
export CYPRESS_SL_TEST_STAGE="Cypress E2E Tests"
#export CYPRESS_SL_BUILD_SESSION_ID=<your_bsid> # unique per app build/version
export CYPRESS_SL_LAB_ID=<your_labid> # unique per testing environment$env:CYPRESS_SL_TOKEN = "<your_token>" # from CI secret or vault
$env:CYPRESS_SL_ENABLE_REMOTE_AGENT = "true"
$env:CYPRESS_SL_TEST_STAGE = "Cypress E2E Tests"
# $env:CYPRESS_SL_BUILD_SESSION_ID = "<your_bsid>" # unique per app build/version
$env:CYPRESS_SL_LAB_ID = "<your_labid>" # unique per testing environmentAdditional Runner Usages
npx sealights-cypress-plugin npx cypress run --spec test.spec.cynode ./node_modules/.bin/sl-cypress-runner npx cypress run --spec test.spec.cynpx sealights-cypress-plugin my-own-cypress-command --headed --browser chromenpx sealights-cypress-plugin npx cypress run --spec '*.spec.cy'Logging and Debugging
Sample Script
Advanced Configuration and Developer Options
Common Plugin Parameters
Environment Variable Equivalent
Required
Description
Last updated
Was this helpful?

