lambdatest-cypress-cli
Version:
The lambdatest-cypress-cli is LambdaTest's command-line interface (CLI) aimed to help you run your Cypress tests on LambdaTest platform.
145 lines (141 loc) • 5.29 kB
JavaScript
module.exports = {
LOGIN_URL: "/cy/login",
RUN_URL: "/cy/run",
RUN_WS_URL: "/cy/run/ws",
PROJECT_UPLOAD_URL: "/url",
CLI: "/cy/versions",
LT_CONFIG_NAME: "lambdatest-config.json",
LT_BASE_REPORTER_CONFIG_FILE_NAME: "base_reporter_config.json",
LT_BASE_CUSTOM_SUPPORT_FILE_NAME: "custom_support_file.js",
CYPRESS_CONFIG_NAME: "cypress.json",
DEFAULT_TEST_PATH: ".",
LAMBDA_CONFIG: "./lambdatest-config.json",
SUPPORTED_CYPRESS_VERSIONS: ["5", "6"],
WHITELISTED_ENV_VARS: [
"CI_BUILD_ID",
"PERCY_TOKEN",
"QASE_REPORT",
"QASE_RUN_ID",
"QASE_RUN_NAME",
"QASE_RUN_DESCRIPTION",
"QASE_API_TOKEN",
"QASE_API_BASE_URL",
"QASE_ENVIRONMENT_ID",
"QASE_SCREENSHOT_FOLDER",
"QASE_SCREENSHOT_SENDING",
"QASE_RUN_COMPLETE",
],
BLOCKED_ENV_VARS: [
"MANPATH",
"NVM_CD_FLAGS",
"TERM",
"SHELL",
"TMPDIR",
"SSH_CLIENT",
"NVM_PATH",
"SSH_TTY",
"NVM_DIR",
"USER",
"PATH",
"NVM_NODEJS_ORG_MIRROR",
"PWD",
"LANG",
"SHLVL",
"HOME",
"LOGNAME",
"SSH_CONNECTION",
"LC_CTYPE",
"NVM_BIN",
"NVM_IOJS_ORG_MIRROR",
"OLDPWD",
],
BUILD_END_STATES:
"&status=running,queued,created,initiated,pqueued,error,lambda error,failed,completed,queue_timeout,idle_timeout,stopped,cancelled,passed,timeout,inactive",
BUILD_ERROR_STATES: "&status=error,lambda error,failed",
CYPRESS_ENV_FILE_PATH: "cypress.env.json",
LT_USERNAME_ENV: "LT_USERNAME",
LT_ACCESS_KEY_ENV: "LT_ACCESS_KEY",
ENVS: ["stage", "beta", "prod", "preprod", "stage_new"],
prod: {
INTEGRATION_BASE_URL: "https://api.lambdatest.com/liis",
BUILD_BASE_URL: "https://api.lambdatest.com/automation/api/v1/builds/",
BUILD_STOP_URL: "https://api.lambdatest.com/api/v1/test/stop",
SESSION_URL:
"https://api.lambdatest.com/automation/api/v1/sessions?limit=200&session_id=",
REPORT_URL:
"https://api.lambdatest.com/automation/api/v1/cypress/artefacts/test/",
},
beta: {
INTEGRATION_BASE_URL:
"https://api-cypdevenv22-dev.lambdatestinternal.com/liis",
BUILD_BASE_URL:
"https://api-cypdevenv22-dev.lambdatestinternal.com/automation/api/v1/builds/",
BUILD_STOP_URL:
"https://api-cypdevenv22-dev.lambdatestinternal.com/api/v1/test/stop",
SESSION_URL:
"https://api-cypdevenv22-dev.lambdatestinternal.com/automation/api/v1/sessions?limit=200&session_id=",
REPORT_URL:
"https://api-cypdevenv22-dev.lambdatestinternal.com/automation/api/v1/cypress/artefacts/test/",
},
stage: {
INTEGRATION_BASE_URL: "https://stage-api.lambdatestinternal.com/liis",
BUILD_BASE_URL:
"https://stage-api.lambdatestinternal.com/automation/api/v1/builds/",
BUILD_STOP_URL: "https://stage-api.lambdatestinternal.com/api/v1/test/stop",
SESSION_URL:
"https://stage-api.lambdatestinternal.com/automation/api/v1/sessions?limit=200&session_id=",
REPORT_URL:
"https://stage-api.lambdatestinternal.com/automation/api/v1/cypress/artefacts/test/",
},
stage_new: {
INTEGRATION_BASE_URL: "https://prestage-api.lambdatest.com/liis",
BUILD_BASE_URL:
"https://prestage-api.lambdatest.com/automation/api/v1/builds/",
BUILD_STOP_URL: "https://prestage-api.lambdatest.com/api/v1/test/stop",
SESSION_URL:
"https://prestage-api.lambdatest.com/automation/api/v1/sessions?limit=200&session_id=",
REPORT_URL:
"https://prestage-api.lambdatest.com/automation/api/v1/cypress/artefacts/test/",
},
preprod: {
INTEGRATION_BASE_URL: "https://preprod-api.lambdatest.com/liis",
BUILD_BASE_URL:
"https://preprod-api.lambdatest.com/automation/api/v1/builds/",
BUILD_STOP_URL: "https://preprod-api.lambdatest.com/api/v1/test/stop",
SESSION_URL:
"https://preprod-api.lambdatest.com/automation/api/v1/sessions?limit=200&session_id=",
REPORT_URL:
"https://preprod-api.lambdatest.com/automation/api/v1/cypress/artefacts/test/",
},
HyperExecuteCLIBinaryDownloadLinks: {
stage: {
windows:
"https://stage-downloads.lambdatestinternal.com/hyperexecute/windows/hyperexecute.exe",
linux:
"https://stage-downloads.hyperexecute.cloud/hyperexecute/linux/hyperexecute",
darwin:
"https://stage-downloads.hyperexecute.cloud/hyperexecute/darwin/hyperexecute",
},
prod: {
windows:
"https://downloads.hyperexecute.cloud/hyperexecute/windows/hyperexecute.exe",
linux:
"https://downloads.hyperexecute.cloud/hyperexecute/linux/hyperexecute",
darwin:
"https://downloads.hyperexecute.cloud/hyperexecute/darwin/hyperexecute",
},
},
FeatureFlagURL:{
stage:"https://api-stage-hyperexecute.lambdatestinternal.com/sentinel/v1.0/featureflags",
prod:"https://api-hyperexecute.lambdatest.com/sentinel/v1.0/featureflags",
beta:"https://api-stage-hyperexecute.lambdatestinternal.com/sentinel/v1.0/featureflags"
},
JobStatus_URL:{
stage:"https://api-stage-hyperexecute.lambdatestinternal.com/sentinel/v1.0/job/",
prod:"https://api-hyperexecute.lambdatest.com/sentinel/v1.0/job/"
},
Dashboard_URL:{
stage:"https://stage-automation.lambdatestinternal.com/build?build=",
prod:"https://automation.lambdatest.com/build?build="
}
};