【SpringBoot】bug解决:Runner org.junit.internal.runners.ErrorReportingRunner

编程入门 行业动态 更新时间:2024-10-07 20:32:37

【SpringBoot】bug解决:<a href=https://www.elefans.com/category/jswz/34/1758985.html style=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

本文发布于:2024-03-04 11:34:36,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1709165.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Runner   org   SpringBoot   bug   runners

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!