其他分享
首页 > 其他分享> > Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on

作者:互联网

Maven使用Test的时候出现

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project StuMavenDemo1: There are test failures.

错误

原因:高版本IDEA在运行项目单元测试时会调用test方法,如果你写的单元测试代码有问题,就会直接提示你某个单元测试有问题,就会报上面的错误

将Maven的插件test禁用掉即可.

 

标签:project,There,单元测试,maven,Failed,test,StuMavenDemo1
来源: https://www.cnblogs.com/ai377377/p/16615747.html