无法从intellij执行空手道场景 [英] Karate scenario cannot be executed from intellij
本文介绍了无法从intellij执行空手道场景的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
无法执行intellij的空手道方案 操作系统:Mac Intellij版本:无法从intellij执行空手道场景 空手道版本:
Unable to execute karate scenario from intellij OS: Mac Intellij version: Karate scenario cannot be executed from intellij Karate version:
compile group: 'io.cucumber', name: 'cucumber-core', version: '4.7.0'
testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile group: 'com.intuit.karate', name: 'karate-apache', version: '0.9.3'
testCompile group: 'com.intuit.karate', name: 'karate-junit4', version: '0.9.3'
错误消息
Error: Could not find or load main class cucumber.api.cli.Main
Caused by: java.lang.ClassNotFoundException: cucumber.api.cli.Main
推荐答案
您正在尝试混合不支持的黄瓜和空手道.请参阅此问题以获取详细信息.
You are trying to mix Cucumber and Karate which is not supported. Refer to this issue for the gory details.
因此,请尝试不使用Cucumber依赖项.有关如何开始IntelliJ的说明-请参阅此视频: https://youtu.be/W-af7Cd8cMc
So try without the Cucumber dependency. For instructions on how to get started on IntelliJ - please refer this video: https://youtu.be/W-af7Cd8cMc
这篇关于无法从intellij执行空手道场景的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文