Runner org.junit.internal.runners.ErrorReportingRunner"/>
【SpringBoot】bug解决:Runner org.junit.internal.runners.ErrorReportingRunner
在SpringBoot项目的SpringbootdemoApplicationTests中进行单元测试时,出现 Runner org.junit.internal.runners.ErrorReportingRunner (used on class zqq.SpringbootdemoApplicationTests) does not support filtering and will therefore be run completely.的错误。
解决:SpringbootdemoApplicationTests类是创建SpringBoot项目时自动生成的,默认引入的Test是 import org.junit.jupiter.api.Test,修改为:import org.junit.Test即可。
更多推荐
【SpringBoot】bug解决:Runner org.junit.internal.runners.ErrorReportingRunner
发布评论