单元测试报错 Error running xxx. Command line is too long. Shorten the command line via JAR manife
方法一:Edit Configurations,将默认的Shorten command line的值user-local default 改为 JAR mainifest 或者 classpath file(这种办法需要对每个类单独设置)方法二:在项目的.idea/workspace.xml文件中,找到,后面在添加一行(此方式一次设置就可)因为项目需要打印的环境变量太长,超过了限制,需要缩短命令行
·
所有评论(0)