How to run Maven surefire without printing out test results to the command line?

只谈情不闲聊 提交于 2019-11-30 14:05:52
culix

Try setting the surefire.printSummary property to false: this should only print the test cases that have errors. So try running it as mvn -q -Dsurefire.printSummary=false.

Alternatively, you can put it in your pom.xml:

  <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-surefire-plugin</artifactId>
    <configuration>            
      <printSummary>false</printSummary> 
    </configuration>
  </plugin>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!