cypress-io / cypress-example-recipes

Various recipes for testing common scenarios with Cypress
https://on.cypress.io/examples
3.43k stars 1.34k forks source link

CLI --spec does not use the configuration file specPattern to find specific files to run #788

Closed arithon55 closed 2 years ago

arithon55 commented 2 years ago

npx cypress run -b edge -s "cypress/e2e/ccptests.feature" does not use the configuration file specPattern: "*/.feature" to find valid files to be run. The files are found if no --spec is used. This used to work before the Cypress 10 name change of spec files. The feature file has the @badeball/cypress-cucumber-preprocessor which produces the actual spec files that are used by Cypress.

Error message is

Can't run because no spec files were found. We searched for specs matching this glob pattern: C:\dev\bi---cypress-tests\cypress\e2e\ccptests.feature