Search code examples
javatestingcucumberbdd

Cannot define step definition in cucumber


Folder structure

I am trying to create step definition from the feature file, but the steps in feature file does not get highlighted even if i press alt+enter. (Please refer to the image and ignore the ":")

But the same was working a couple of days back, so not sure whether I messed up something.

Please let me know my mistake


Solution

  • OK so i figured out the problem. I had installed a cucumber.js few month back which was causing the problem. I uninstalled cucmber.js though my IDE and then just used cucumber java and it worked fine.