Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 407
nu75h311 Avatar asked Dec 08 '25 17:12

nu75h311


1 Answers

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.

like image 82
Marit Avatar answered Dec 10 '25 06:12

Marit



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!