解决“no tests found with test runner ‘JUnit5‘“问题
解决"no tests found with test runner ‘JUnit5’"问题
本来可以跑的项目跑着跑着又不行了,或者导进来项目就跑不了:
解决方案如下:
步骤一:应该将import org.junit.Test; 换成 import org.junit.jupiter.api.*;
步骤二;点左上角windows-》preferences-》java-》Compiler-》Compiler compliance level 选择 对应的版本比如你java是1.8 ,就选1.8就
原创
2021-04-22 21:22:21 ·
632 阅读 ·
0 评论