bahmutov / cypress-select-tests

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

Plugin crashed error while running the cypress test with tags #142

Open nimmala89 opened 4 years ago

nimmala89 commented 4 years ago

I'm facing the below issue while using this plugin. image

I have configured the index.js file as given in the documentation. I have configured my tests to run with a 'smoke' tag

I'm running the command cypress run --browser chrome --env grep=smoke

@bahmutov Can you please help me to resolve this ?

samlucax commented 4 years ago

Any updates?

samlucax commented 4 years ago

I have tested here and I found a scenario: When I use the syntax const file = require('../../fixtures/example.json') in my spec file, then the plugins crashes.

@bahmutov this helps in some way?

Ingewar commented 3 years ago

The same thing happened. And right after I'd removed fixtures, everything returns to normal. Any thoughts about what is it and how we can work around it? Cypress version - 4.11.0

Ingewar commented 3 years ago

Cypress v5.5.0 - still the same error(

Ingewar commented 3 years ago

Apparently, the issue with JSON files. As soon as I convert fixture to .js, everything fires up.

samlucax commented 3 years ago

Yeah, I had to do the same. Worked well converting my used JSON files to .js .