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 编译
推荐指数:
真诚点赞 诚不我欺~