[Cucumber] Unable to create cucumber feature file in intellij maven project

208 views
Skip to first unread message

Megha A.N

unread,
Sep 16, 2017, 11:55:18 AM9/16/17
to Cukes
Hi all,

I have created a maven project with cucumber. I have installed cucumber-java plugin also. but When I try to create feature file, its not recognising that it's a cucumber feature file. Please share thoughts what might have gone wrong.

Marit van Dijk

unread,
Sep 16, 2017, 1:56:01 PM9/16/17
to Cukes
Have you marked your sources and test sources folders as such? (Had this problem myself; I think that's how I fixed it)

Koen Prins

unread,
Sep 17, 2017, 1:23:38 PM9/17/17
to Cukes


On Saturday, 16 September 2017 17:55:18 UTC+2, Megha A.N wrote:
Hi all,

I have created a maven project with cucumber. I have installed cucumber-java plugin also. but When I try to create feature file, its not recognising that it's a cucumber feature file. Please share thoughts what might have gone wrong.

I did some testing and all the files with .feature as an extention will be recognized by intellij as a cucumber feature file. This will be so when I do New -> File -> Gherkin feature file or just creating a new file and giving it the extension .feature.

There could be two possibilities:
- either you installed the plugin but did not yet restart IntelliJ. Fix this by restarting intellij
- or the plugin is not active in intellij, check this by going to preferences, plugins and make sure the checkbox at Cucumber plugin is checked.

Outside of this I have no clue. Let us know what worked?

George Dinwiddie

unread,
Sep 17, 2017, 1:39:57 PM9/17/17
to cu...@googlegroups.com
Megha,
Take a look at https://github.com/cucumber/cucumber-java-skeleton to see
what you're doing differently.

- George

--
----------------------------------------------------------------------
* George Dinwiddie * http://blog.gdinwiddie.com
Software Development http://www.idiacomputing.com
Consultant and Coach http://www.agilemaryland.org
----------------------------------------------------------------------

Reply all
Reply to author
Forward
0 new messages