cypress-io / cypress-grep

Filter tests using substring
137 stars 19 forks source link

The env variables should not be case sensitive #141

Closed kishaningithub closed 1 year ago

kishaningithub commented 2 years ago

As per the below documentation the env variables will be given in "upper snake case" while the same in the env field in config will be in camel case

https://docs.cypress.io/guides/guides/environment-variables#Option-3-CYPRESS_

This plugin works if the env is exported like following

export CYPRESS_grepTags="@smoke"

but does not work if it is in upper snake case

export CYPRESS_GREP_TAGS="@smoke"
joshuajtward commented 2 years ago

It should be fairly straightforward to add this enhancement. You'll need to add the option to src/plugin and src/support in the relevant places.

jordanpowell88 commented 1 year ago

We are in the process of deprecating this repo as this package has been republished under @cypress/grep and has moved to https://github.com/cypress-io/cypress/tree/develop/npm/grep. I'm going to go ahead and close this issue as it appears stale. If this is still an issue, please open a new issue here