cypress-io / cypress-grep

Filter tests using substring
137 stars 19 forks source link

enable grep AND condition for search using multiple substrings #112

Closed petermsouzajr closed 1 year ago

petermsouzajr commented 2 years ago

Functionality currently in docs:

run all tests with "hello world" or "auth user" in their title $ npx cypress run --env grep="hello world; auth user"

Additional functionality desired:

only run tests with both "hello world" and "auth user" in their title $ npx cypress run --env grep="hello world: auth user"

HibaBarakat commented 2 years ago

Hi there, i need to ask you when using grep .. are you using JS specs or TS scripts Also i want to ask you if possible, when you run your code with grep does it run "before" un-needed specs ? even though i added not to run them

petermsouzajr commented 2 years ago

Hi there, i need to ask you when using grep .. are you using JS specs or TS scripts Also i want to ask you if possible, when you run your code with grep does it run "before" un-needed specs ? even though i added not to run them

I am using JS specs only. Using 'grep' command does work as expected, the entire spec will run if it contains an IT block that meets the search string in grep, all other IT blocks will be marked as 'Pending'

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