Search code examples
javaintellij-ideacucumberpom.xmlcucumber-java

Migrating from info.cukes to io.cucumber shows no steps status when running the test


My tests run fine with the following in the pom.xml:

<dependency>
    <groupId>info.cukes</groupId>
    <artifactId>cucumber-java</artifactId>
    <version>1.2.5</version>
</dependency>
<dependency>
    <groupId>info.cukes</groupId>
    <artifactId>cucumber-junit</artifactId>
    <version>1.2.5</version>
</dependency>

the scenario and steps show fine:

steps execution showing beautifully

But if I move to newer:

<dependency>
    <groupId>io.cucumber</groupId>
    <artifactId>cucumber-java</artifactId>
    <version>2.3.1</version>
</dependency>
<dependency>
    <groupId>io.cucumber</groupId>
    <artifactId>cucumber-junit</artifactId>
    <version>2.3.1</version>
</dependency>

(or even 2.1.0) the scenario still succeeds but the steps are not displayed anymore:

steps execution not showing

Runing on IntelliJ Ultimate 2017.1.4

Any thoughts?


Solution

  • This is due to the fact that the Event model changed for Cucumber-jvm v2.x (see release notes) and the IntelliJ plugin has not yet been updated to reflect this (for instance, see this issue and the one it links to).

    Please vote for these issues at youtrack if you'd like to see this fixed in IntelliJ!

    Update: This should work by now.