吓死我了_1799

关注

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

吓死我了_1799

关注

阅读 101

2022-12-04


解决办法

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

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

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


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

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


相关推荐

Sky飞羽

警告: Application namespace for attribute app:setBackground will be ignored.

Sky飞羽 55 0 0

Python百事通

【MySQL】World-writable config file ‘.../mysqld.cnf‘ is ignored.

Python百事通 157 0 0

小暴龙要抱抱

Viewport argument value “device-width;” for key “width” is invalid, and has been ignored. Note that

小暴龙要抱抱 135 0 0

Python芸芸

[Warning] World-writable config file ‘/etc/mysql/conf.d/my.cnf‘ is ignored.

Python芸芸 122 0 0

产品喵dandan米娜

maven打包时跳过test测试

产品喵dandan米娜 131 0 0

624c95384278

test 测试命令

624c95384278 264 0 0

巧乐兹_d41f

springboot & mongodb test

巧乐兹_d41f 24 0 0

半夜放水

springboot test ConfigurationProperties

半夜放水 106 0 0

IT影子

java测试test

IT影子 53 0 0

J简文

3.1 模板测试与深度测试(Stencil Test & Z Test)

J简文 56 0 0

精彩评论(0)

0 0 举报