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

点点圈 提交于 2019-12-03 16:15:06

Maven will try to install this plugin along with dependencies first time in .m2/repository folder, due proxy issues dependencies failing to download. so, Update the Maven project:

Steps:

Right-click on "project" Go to "Maven" >> "Update" Wait for all the changes to be applied Commit the changes (if code is on repo) Run

Also check the artifactid, groupid, version of plugins along with dependencies.

I too got this error when I was running mvn test -Dtest=. This error occurred because name of the testclass was incorrect. Once I fixed the name of the test class this error was fixed.

I feel this error occurs when the argument for -Dtest has no test cases to run.

I hope this helps you..

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!