kiwigrid / gherkin-testcafe

Run testcafe tests with gherkin syntax
MIT License
69 stars 2 forks source link

Doesn't seek for JS files in deeper folder structures #68

Open dizzyn opened 4 years ago

dizzyn commented 4 years ago

Hi. Please,

Using: gherkin-testcafe firefox tests/**/*.js tests/**/*.feature

seems that if gherkins are deeper in the structure: /x/y/z/foo.feature

Can not load the steps in the same (deeper) folder:

Doesn't work: /x/y/z/foo.js

Works: /x/foo.js

That means that i can not hold the step definitions next to the feature files.

Thank You

eisenreich commented 4 years ago

I have also a weird behavior regarding the glob pattern. In my case he does not include the steps on the first level.

eisenreich commented 4 years ago

I found the issue 3 minutes later.

You need to watch out, that the * is not interpolated. In my case it is fixed when I use

gherkin-testcafe firefox "tests/**/*.js" "tests/**/*.feature"