Open tausif29 opened 1 year ago
windows cmd: "cy:open": "cypress open -C cypress/config/%npm_config_envi%.config.js", cross-var cmd: "cy:run": "cross-var cypress run -C cypress/config/$npm_config_envi.config.js",
execution cmd: npm run cy:open --envi=live
@tausif29 were you able to make it work?
it worked by using:
cy:run:test": "cross-var cypress-parallel -s cy:run -t 6 -d cypress/e2e/features/* -a '\"--env env=$npm_config_env\"'"
Yes it worked for me with below 2 commands:
$env:ENVI="QA"
npm run cy:parallel
"cy:run": "npx cypress run --browser chrome",
"cy:parallel" : "cypress-parallel -s cy:run -t 4 -d cypress/e2e/features/ -m false -a '\"--env ENV=${ENVI}\"'",
I have above script command, I want to pass
ENVI
asLIVE
orQA
System is not accepting the environment variable in above commandCan you share how do I pass the the arguments in above command?