idea spring boot test 单元测试 No tests found for given includes

青苗 青苗 | 465 | 2023-02-27

gradle 测试异常 No tests found for given includes

检查以下几个点 可能存在问题

  • Junit 5
test {
    useJUnitPlatform()
}
  • 依赖存在
testCompileOnly("org.springframework.boot:spring-boot-starter-test")
  • 指定 idea 编译

b59a7e34fb9e434894893605181a225c.png

文章标签: SpringBoot
推荐指数:

真诚点赞 诚不我欺~

idea spring boot test 单元测试 No tests found for given includes

点赞 收藏 评论

关于作者

青苗
青苗

青苗幼儿园园长

等级 LV5

粉丝 20

获赞 47

经验 1182