很多时候在后台接口写完后,我们都会写对应的单元测试类去验证一下接口是否有问题的。但是很多时候在我们用在打包的时候往往会因为这些单元测试类不通过导致打包失败的。在idea如果的打包时不对单元测试类做特别处理很可能会出现一下问题:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project project-service: There are test failures.
[ERROR]
[ERROR] Please refer to E:\IdeaProjects\project\target\surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using