如何配置"Shorten命令行" IntelliJ中整个项目的方法 [英] How to configure "Shorten command line" method for whole project in IntelliJ
问题描述
运行测试时,出现错误命令行太长". 如果将特定方法或类的运行/调试"配置中的"Shorten命令行"方法设置为"JAR清单",它将起作用,但是如何为整个项目设置它,或者是否有IDE全局设置?
When I run tests I get the error "Command line is too long". It works if I set the "Shorten command line" method in the Run/Debug configuration to "JAR manifest" for the specific method or class, but how do I set it for the whole project or is there an IDE global setting for it?
推荐答案
You can set up a default way to shorten the command line and use it as a template for further configurations by changing the default JUnit Run/Debug Configuration template. Then all new Run/Debug configuration you create in project will use the same option.
这是相关博客文章有关可配置的命令行缩短器选项.
Here is the related blog post about configurable command line shortener option.
这篇关于如何配置"Shorten命令行" IntelliJ中整个项目的方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!