Reputation: 31
I wrote feature files in a project in IntelliJ according to the cucumber syntax. This files worked in another computer. I added the cucumber-java jar files and also installed the Gherkin and cucumber plugins, but still feature files aren't recognized as they should be. What could be the problem?
Upvotes: 3
Views: 14781
Reputation: 325
Essentially two things are required to get cucumber feature recognized as expected type.
This will also ask you to install Gherkin as a Dependency
Select Yes>> Restart ide
Now you have to change file type from settings >> to cucumber scenario.
Note: you wont be getting Cucumber scenario as recognized type until done above installation.
Select cucumber scenario and Add + wildcard for it as-*.feature
Upvotes: 0
Reputation: 1
First make sure you have cucumber
for java
installed, if it is installed follow the below stpes,
1) Create a new feature file
, like <test.feature>
, after file creation a dialog box pops up
2) Select cucumber scenario in form the list and click Ok, there you GO.
Upvotes: 0
Reputation: 1990
So i use IntelliJ 2018
2)in open tab search "File Types" and search for text
3) in Text inside "Registred Patterns" delete "*.feature"
4) then search Cucumber Scenario and add "*.feature"
Upvotes: 9
Reputation: 353
After installing plugin if you till face problem as i did, my feature files are not getting recognized because of groovy
therefore I manually set
File>>Settings>>Editor>>File Types click "cucumber Scenario" and Click + to add .Feature in Recognize Patterns.
Upvotes: 3
Reputation: 2793
Steps I took to get .feature
files recognized. I know that you've probably done this already, but it might help checking the steps again. If all fails, you could try to reinstall the plugins.
"Plugins supporting *.feature files found."
with the option to install the pluginsSettings > Plugins > Browse Repositories
and searched for Cucumber for Java
Hope it helps!
Upvotes: 5