IDEA 的Class not found: "..."Empty test suite

时间:2023-03-09 00:30:31
IDEA 的Class not found: "..."Empty test suite

Junit测试的时候出现  IDEA 的Class not found: "..."Empty test suite问题。

尝试一下解决方法:

第一种方法:

1.modules>path如下选择:

IDEA 的Class not found: "..."Empty test suite

2. 选project,根据自己的需要设置output文件夹:

IDEA 的Class not found: "..."Empty test suite

第二种方法:

1.找到工程中所有的.iml文件,一般情况下工程中会包含三个这样的.iml文件,

2.将上面的三个文件删除,此时工程目录会变动。

3.在Maven Projects中进行刷新,重新加载相关的文件(Reimport),

4.完成上述操作后,重新测试代码即可。

我的问题是按照第二种方法解决的。