0
点赞
收藏
分享

微信扫一扫

Test ignored.使用springboot进行测试时,报错Test ignored.


解决办法

如果你的测试类使用的是@SpringBootTest注解,则你需要在你的module中添加启动类,或着检查测试文件路径时候和类路径一致。

​​可参考解决办法1​​可参考解决办法2

Test ignored.使用springboot进行测试时,报错Test ignored._文件路径


或者把@SpringBootTest注解改成@Slf4j,前提是你的测试类不需要spring的aop,ioc什么的。

Test ignored.使用springboot进行测试时,报错Test ignored._文件路径_02


举报

相关推荐

0 条评论