cypress-io / cypress-grep

Filter tests using substring
137 stars 19 forks source link

cypress-grep not filtering tests #43

Closed borecz closed 3 years ago

borecz commented 3 years ago

Not sure when this stopped working but I've created a replica of my repo here where you can check the implementation.

bahmutov commented 3 years ago
$ ts-node launch.ts --grepTags=-@flaky
Error: Cannot find module 'yargs/yargs'
Require stack:
- /Users/gleb/git/cypress-various-tests/launch.ts
bahmutov commented 3 years ago
Screen Shot 2021-05-27 at 4 15 51 PM

You are taking grep tags and putting them into grep field

env: {
    grep: GREP
  },

The title grep goes into grep, the tags go into grepTags (or grep-tags)

bahmutov commented 3 years ago

docs https://github.com/bahmutov/cypress-grep#use

kind of related: #41

borecz commented 3 years ago

my bad, thanks @bahmutov