cypress-select-tests icon indicating copy to clipboard operation
cypress-select-tests copied to clipboard

Plugin crashed error while running the cypress test with tags

Open nimmala89 opened this issue 5 years ago • 6 comments

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 ?

nimmala89 avatar Aug 20 '20 01:08 nimmala89

Any updates?

samlucax avatar Sep 09 '20 19:09 samlucax

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?

samlucax avatar Sep 10 '20 15:09 samlucax

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 avatar Nov 04 '20 12:11 Ingewar

Cypress v5.5.0 - still the same error(

Ingewar avatar Nov 04 '20 12:11 Ingewar

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

Ingewar avatar Nov 04 '20 14:11 Ingewar

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

samlucax avatar Nov 18 '20 01:11 samlucax