mbolotov / intellij-cypress

IntelliJ-Cypress plugin: https://plugins.jetbrains.com/plugin/13819-intellij-cypress Pro version: https://plugins.jetbrains.com/plugin/13987-cypress-support-pro
MIT License
35 stars 5 forks source link

"Run Cucumber tests from IDE" doesn't work #76

Closed d100bgycg3 closed 2 years ago

d100bgycg3 commented 2 years ago

When clicking next to a test in the sidebar on the green arrows and click Run 'Name of the Test' it always fails using Cypress Support Pro: image image

It seems it doesn't create a configuration type of Cypress but it creates a configuration type of Cucumber.js: image

Do you know how to solve this issue?

mbolotov commented 2 years ago

Hi @DannyEnsink! Please ensure your feature file is located under the Cypress integration folder as it defined by your Cypress configuration file (which is cypress/integration by default). The plugin shows the run gutters for the files inside the integration folder only.

d100bgycg3 commented 2 years ago

Hi @mbolotov ! All .feature files are already located under the Cypress integration folder. Do you have any other ideas why this might be happening?

mbolotov commented 2 years ago

Unfortunately, no. I need a sample project to debug the problem. Could you provide any?

d100bgycg3 commented 2 years ago

I found a fix, which ended up being rather simple.

Inside Rider IDE go to File > Settings... > Languages & Frameworks > Cypress > Cypress config file path.

By default this field is empty and the IDE is supposed to look for the cypress.json file by itself, but in our case it seems to not being able to find it (although the IDE isn't saying it cannot find it).

So the solution ended up being to put the path to the cypress.json file there and everything started to work.