bahmutov / cypress-select-tests

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

Filtering non runing tests #187

Open Hernan-Alonso opened 3 years ago

Hernan-Alonso commented 3 years ago

Hi !

I was wondering since cypress-select-tests runs first all tests (if you have 100 tests will go through all 100 tests and then aply the filter) is there a way to skip from loading if I only have 1 tests that will run of those 100? as for example the sentence:

npx cypress run --spec cypress/integration/**/SmokeTest/*.spec.js ---> This will only run those folders that are named "SmokeTest" and won't load all 100 tests.

Images for reference:

Using grep from cypress-select-tests image

Usign --spec to filter with folders image

Side note: Some times when I run the cypress-select-tests I get some tests that are not tagged running and they are not skipped, if anyone could know this issue would be glad if they share what could be causing this.

Thanks!