badeball / cypress-cucumber-preprocessor

Run cucumber/gherkin-syntaxed specs with Cypress
MIT License
1.32k stars 150 forks source link

Can't find test files after migrate from cypress-cucumber-preprocessor #1232

Closed KarineBrandelli closed 1 month ago

KarineBrandelli commented 1 month ago

Current behavior

I'm migrating from cypress-cucumber-preprocessor, and after adjust the config files, it says that the file doesn't have any tests.

I've created a sandbox EXACLTY as my local repo. On the sandbox works perfectly, on my machine don't.

I don't have any errors to go one, maybe some config on my machine is wrong (?)

Sandbox: image

My local machine: image

image

If I click on the test name, it redirecs correctly to the test file on the IDE.

I've runned out of ideias. Tried literally everything.

Desired behavior

Find the tests.

Test code to reproduce

This sandbox WORKS. On my machine, the SAME configuration, doesn't work. https://codesandbox.io/p/devbox/3y4jwl

My machine: Ubuntu

Versions

Checklist

badeball commented 1 month ago

I'm not really sure how I can help with a problem that I can't reproduce nor even experience. You can start by using chrome devtools to see the contents of check-tree.feature after it's been compiled into JS and sent to the browser (post it here).

KarineBrandelli commented 1 month ago

I'm not really sure how I can help with a problem that I can't reproduce nor even experience. You can start by using chrome devtools to see the contents of check-tree.feature after it's been compiled into JS and sent to the browser (post it here).

You kinda solved it without seeing it lol. The path to my folder test had a special character on it, ex: usr/local/P&D/frontend, and the special character was breaking the path, thus not finding anything. Renamed the folder and worked. Find out looking at the devtools specPath! Thanks 😄