Hello!
I try to run the following command to define tags and envs.
npx cypress-tags run -e TAGS='@fidelity and @regress and not @Ignore' --env configFile=hlg
The code executes normally, except that it executes the not @Ignore tag that it shouldn't.
So when I execute the command:
npx cypress-tags run -e TAGS='@fidelity and @regress and not @Ignore'
Without --env configFile = hlg it runs perfectly and following the rule of not executing the scenarios that @Ignore has.
How could I execute the tags and set the environment variables that I pass through the command line?
Multiple variables has to be separated by commas, not by specifying -e / --env multiple times. This is simply how the Cypress CLI works. Try this instead.
$ npx cypress-tags run --env TAGS='@fidelity and @regress and not @Ignore',configFile=hlg
Perfect, it worked as expected <3
Most helpful comment
Multiple variables has to be separated by commas, not by specifying
-e / --envmultiple times. This is simply how the Cypress CLI works. Try this instead.