bahmutov / cypress-select-tests

User space solution for picking Cypress tests to run
97 stars 14 forks source link

Could be? grep or fgrep not working with my folder structure #185

Closed Hernan-Alonso closed 3 years ago

Hernan-Alonso commented 3 years ago

Hi community! I was wondering, I'm having a working tree sort of this way:

-cypress
---------product
             ----------actionType
                             ------ SmokeTest.spec.js
---------product
             ----------actionType
                             ------ SmokeTest.spec.js
             ----------actionType
                             -------FolderA
                                        ----- spec.js
                             -------FolderB
                                       ------ spec.js

Following the install and code that should be implemented in cypress folder by : npmjs

I try to run my test as:

npx cypress run --env fgrep=SmokeTest

and where it should run 2 tests it runs all tests.

Anyone know what the issue it could be?