Spring Boot单元测试错误:no tests found with test runner “Junit5”

单元测试错误:no tests found with test runner “Junit5”


Spring Boot单元测试错误:no tests found with test runner “Junit5”_第1张图片

只需按照下面操作就可以:
1、在单元测试的文件上右键出来Run as 选择 Run Configuration

Spring Boot单元测试错误:no tests found with test runner “Junit5”_第2张图片

2、在出来的界面把Test runner选择成当前所使用的,我的是Junit4.然后点击run,成功。

Spring Boot单元测试错误:no tests found with test runner “Junit5”_第3张图片

你可能感兴趣的:(Bug,junit,bug,spring,boot)