问题:Springboot在运行单元测试的时候只要一运行就会出现下面代码
Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project springboot-mybatis-puls: There are test failures. Please refer to F:20210701trainprocedurespringboot-mybatis-pulstargetsurefire- reports for the individual test results. Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
问题原因:单元测试出现错误,高版本IDEA在运行项目单元测试时会首先初始化,调用test方法,如果你写的单元测试代码有问题,就会直接提示你某个单元测试有问题,就会报上面的错误
解决办法:将maven的插件test禁用掉即可
结果:最后再次运行单元测试的时候就会出现你的详细问题之处



