IntelliJ 缩短 Cucumber 测试的命令行 [重复]

2024-01-11

我在 IntelliJ 中运行 Cucumber 测试时遇到问题。当我尝试运行功能或场景时,出现以下错误:

"Error running 'Feature <feature>': Command line is too long. Shorten command line for Feature: <feature> or also for Cucumber java default configuration"

我知道作为 IntelliJ 的一部分2017.3 发布 https://blog.jetbrains.com/idea/2017/10/intellij-idea-2017-3-eap-configurable-command-line-shortener-and-more/,他们在运行/调试配置中添加了对“缩短命令行”选项的支持。但是,如果我比较默认配置,我不会将其视为 Cucumber Java 配置的一部分,但我确实在 JUnit 配置中看到它。

我没有得到其他人提到的有关动态 .classpath 的弹出提示,我猜是因为这个新版本。有任何想法吗?


如果您编辑IntelliJ的workspace.xml文件来设置dynamic.classpath属性为true,它就会起作用。

<component name="PropertiesComponent">
    ...
    <property name="dynamic.classpath" value="true" />
</component>

我相信 IntelliJ 曾经通过弹出窗口为您执行此操作,但由于 2017.3 中的“缩短命令行”功能已添加到正常的默认运行/调试配置中,因此它不再以这种方式执行。由于 Cucumber for Java 是一个插件,它一定不知道在这种情况下要做什么。

Hopefully the issue is fixed to add the dropdown: Shorten command line dropdown

在这里找到了一些答案:

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

IntelliJ 缩短 Cucumber 测试的命令行 [重复] 的相关文章

随机推荐