报错:org.junit.platform.commons.JUnitException:TestEngine with ID ‘junit-vintage’ failed to discover tests
看到这种报错,就可以直接看coused by后面的
Caused by: org.junit.platform.commons.JUnitException: Unsupported version of junit:junit:4.11. Please upgrade toversion 4.12 or later.
原因:导入的依赖版本问题
修改:将这里的version中的版本改为4.12以上的 或者 是将version这一行注释掉就可以了