admin管理员组文章数量:1196780
As mentioned in .4.0 cucumber compatibility is removed and once we upgraded karate-junit5 dependency version to latest 1.5.1 from 1.3.1, "Cucumber for Java" plugin stopped working in Intellij.
This is what in pom.xml of karate-core v1.3.1
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-java</artifactId>
<version>1.2.5</version>
<exclusions>
<exclusion>
<groupId>info.cukes</groupId>
<artifactId>cucumber-html</artifactId>
</exclusion>
<exclusion>
<groupId>info.cukes</groupId>
<artifactId>cucumber-jvm-deps</artifactId>
</exclusion>
<exclusion>
<groupId>info.cukes</groupId>
<artifactId>gherkin</artifactId>
</exclusion>
</exclusions>
</dependency>
And i copied the above and updated the group ids and version of cucumber-java, added in my pom.xml
<dependency>
<groupId>io.karatelabs</groupId>
<artifactId>karate-junit5</artifactId>
<version>1.5.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-java</artifactId>
<version>7.20.1</version>
<exclusions>
<exclusion>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-html</artifactId>
</exclusion>
<exclusion>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-jvm-deps</artifactId>
</exclusion>
<exclusion>
<groupId>io.cucumber</groupId>
<artifactId>gherkin</artifactId>
</exclusion>
</exclusions>
</dependency>
After adding this i started getting error:
Exception in thread "main" java.lang.NoClassDefFoundError: io/cucumber/gherkin/GherkinParser
So i removed the gherkin exclusion part and then ended up with error
(127:0): unexpected end of file, expected: #DocStringSeparator, #Other
This same feature file was working in karate 1.3.1 version with "cucumber for java" plugin We cannot pay for karate plugin license and if no other way to get cucumber plugin works, then for now we may need to go back to version < 1.4.0 Any one face this error and how you got the syntax highlighting and the run features back in intellij?
本文标签: intellij ideaKarate upgrading 14x or higher with cucumber supportStack Overflow
版权声明:本文标题:intellij idea - Karate upgrading 1.4.x or higher with cucumber support - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1738532711a2093922.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论