Using Cucumber with IntelliJ

Toks picture Toks · Feb 13, 2014 · Viewed 17.3k times · Source

Does anyone knows why 'Cucumber Java' does not appear in "Edit Configurations -> Defaults -> ???? even though my pom file as downloaded the dependency i.e. cucumber-java (1.1.5)

<dependencies>
        <dependency>
            <groupId>info.cukes</groupId>
            <artifactId>cucumber-core</artifactId>
            <version>1.1.5</version>
        </dependency>
        <dependency>
            <groupId>info.cukes</groupId>
            <artifactId>cucumber-java</artifactId>
            <version>1.1.5</version>
        </dependency>
        <dependency>
            <groupId>info.cukes</groupId>
            <artifactId>cucumber-junit</artifactId>
            <version>1.1.5</version>
        </dependency>
        <dependency>
            <groupId>org.seleniumhq.selenium</groupId>
            <artifactId>selenium-server</artifactId>
            <version>2.38.0</version>
        </dependency>
    </dependencies>

Pom.xml file is used to install all the necessary plugins i.e. cucumber for java plugin

Answer

Eugene Evdokimov picture Eugene Evdokimov · Feb 13, 2014

Make sure you have installed and enabled the Cucumber for Java plugin from the JetBrains plugin repository.

Look in the File -> Settings... enter image description here

And you cannot install plugins into IDEA via Maven.