【IntellJ IDEA】idea启动测试类报错Error running 'Test1.test': Command line is too long. Shorten command line for Test1.test or also for JUnit default configuration.


idea启动测试类报错

Error running 'Test1.test': Command line is too long. Shorten command line for Test1.test or also for JUnit default configuration.

 

注意:

最简单的方法,就是你重新创建一个新的测试类,在里面重新写一遍测试方法,代码都可以粘贴过去。

 

 

解决方法:

1.打开本项目的.idea文件夹,找到文件夹中的workspace.xml文件

 

2.搜索 

PropertiesComponent

 

3.在这个父级结构中添加

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

 

 4.保存以后 右键测试方法,查看效果,如果依旧有 问题,则设置

 

5.效果如下

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



猜您在找 IDEA启动项目时报错:Error running 'Application': Command line is too long. Shorten command line for Application or also for Spring Boot default configuration. idea 解决Error running ‘Test’: Command line is too long. 【springcloud】【idea】启动服务报错Command line is too long. Shorten command line for XXXApplication or also for Spring Boot default configuration. idea 启动项目提示 Command line is too long. Shorten command line for Application or also for Spring Boot default configuration. idea,运行SpringBoot项目提示命令行太长:Error running 'TeasApplication': Command line is too long. Shorten command line for TeasApplication or also for Spring Boot default configuration. Error running 'JeecgSystemApplication': Command line is too long. Shorten command line for JeecgSystemApplication or also for Spring Boot default configuration. Springboot项目启动报【Error running 'xxx': Command line is too long. Shorten command line for xxx or also for Spring Boot default configuration.】错误解决 成功解决 运行报错信息:Error running xxx项目: Command line is too long. Shorten command line for xxx项目 or also for Spring Boot default configuration. java 项目启动异常 Command line is too long. Shorten command line for xxxApplication or also for Spring Boot default configuration. idea启动springboot项目报Error running 'ServiceStarter': Command line is too long. Shorten command line for ServiceStarter or also for Application
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM