DFW*_*DFW 12 java intellij-idea cucumber
我在IntelliJ中遇到了运行Cucumber测试的问题.当我尝试运行某个功能或方案时,出现以下错误:
"Error running 'Feature <feature>': Command line is too long. Shorten command line for Feature: <feature> or also for Cucumber java default configuration"
Run Code Online (Sandbox Code Playgroud)
我知道,作为IntelliJ 2017.3版本的一部分,他们在运行/调试配置中添加了对"缩短命令行"选项的支持.但是,如果我比较默认配置,我不认为它是Cucumber Java配置的一部分,但我确实在JUnit配置中看到它.
我没有得到其他人提到的关于动态.classpath的弹出提示,我假设因为这个新版本.有任何想法吗?
DFW*_*DFW 31
如果您编辑IntelliJ的workspace.xml文件以将该dynamic.classpath属性设置为true,它将起作用.
<component name="PropertiesComponent">
...
<property name="dynamic.classpath" value="true" />
</component>
Run Code Online (Sandbox Code Playgroud)
我相信IntelliJ曾经通过弹出窗口为您做到这一点,但由于2017.3中的"缩短命令行"功能已添加到正常的默认运行/调试配置中,因此它不再是这样做的.由于Cucumber for Java是一个插件,它一定不知道该场景中该做什么.
希望修复该问题以添加下拉列表:

在这里找到了一些答案:IDEA 10.5命令行太长了
| 归档时间: |
|
| 查看次数: |
13145 次 |
| 最近记录: |