3

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?

rollstuhlfahrer
  • 3,988
  • 9
  • 25
  • 38
nu75h311
  • 33
  • 5

2 Answers2

2

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.

Marit
  • 2,399
  • 18
  • 27
0

Cucumber plugin supporting cucumber.io initially was released for IntelliJ 2017.3 Release notes on Dec 27, 2017. Latest 2017.1.5 was released on Jun 06, 2017 Release notes I don't think it has a port for cucumber.io.

I can confirm that it works on 2017.2.6 and 2017.3.4. Sometimes I have same issue even on these versions, restart of IntelliJ solves it.

uli
  • 671
  • 6
  • 15