原本test文件夹错误设置在了src=》main下面。
我将test目录移动到了与main平级。
再shift+ctrl+f10,控制台报错“class not found:…empty test suite”
搜了搜,shift+ctrl+alt+s,到设置界面。
重新设置了下目录。再运行。
IDEA写junit测试用例时报class not found:...empty test suite
最新推荐文章于 2025-07-04 12:33:32 发布
原本test文件夹错误设置在了src=》main下面。
我将test目录移动到了与main平级。
再shift+ctrl+f10,控制台报错“class not found:…empty test suite”
搜了搜,shift+ctrl+alt+s,到设置界面。
重新设置了下目录。再运行。