IntelliJ cucumber-jvm plugin doesn't run tests

Running a .feature file gives me the following error:

Caused by: java.lang.NoSuchMethodError: gherkin.formatter.model.Feature.getLine()Ljava/lang/Integer        at org.jetbrains.plugins.cucumber.java.run.CucumberJvmSMFormatter.feature(CucumberJvmSMFormatter.java:89)

        ... 16 more


This was due to me not having the latest cucumber-jvm plugin installed.


add below dependency in pom.xml:

    info.cukes

    cucumber-jvm

    1.2.5

    pom

你可能感兴趣的:(IntelliJ cucumber-jvm plugin doesn't run tests)