Process finished with exit code 1 Class not found: "DiaryServiceTest"Empty test suite.

版权声明: https://blog.csdn.net/smileyan9/article/details/88172865

1. 编写目的

介绍IDEA报的一种错误以及错误的解决方法。

2. 问题描述

运行项目中的test代码时(junit单元测试),IDEA会提示错误如图:
在这里插入图片描述

3. 解决方法

删除已经生成的target文件夹即可。
在这里插入图片描述
再次运行IDEA会重新生成target文件夹,并且不再会提示以上错误。

Smileyan 2019年3月5日

猜你喜欢

转载自blog.csdn.net/smileyan9/article/details/88172865