cypress-io / cypress-grep

Filter tests using substring
137 stars 19 forks source link

Tagged tests not running correctly / Setup issue / Debug module #147

Closed antohayden closed 1 year ago

antohayden commented 2 years ago

Hi,

I was struggling with an issue where my tagged tests weren't running as I expected. It would run the entire file the test was tagged in rather than the individual tests. The env variables in cypress.config.ts were correct and I'm using the latest versions of Cypress (10.6.0) and this plugin. image

I eventually realised I had the below code in cypress/plugins/index.js instead of cypress/support/e2e.ts file incorrectly. image

I configured e2e.ts as per the instructions but I ran into the below error.. image

I then installed debug into the project npm i --save-dev debug

and tests tagged are now running as expected with the plugin.

Just wanted to note this in case anyone else comes across a similar issue. <3

Narretz commented 2 years ago

cypress-grep has debug as a non-dev dependency, so maybe your node_modules got mixed up somehow.

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