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

前端 未结 1 679
隐瞒了意图╮
隐瞒了意图╮ 2021-01-02 17:01

I am running the Maven 3.1.0 Surefire plugin already with the --quiet option, however it still prints out the results of unit tests out to the

相关标签:
1条回答
  • 2021-01-02 17:29

    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>
    
    0 讨论(0)
提交回复
热议问题