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


i running maven 3.1.0 surefire plugin already --quiet option, still prints out results of unit tests out command line, if pass. is there way print failures?

the output i'd suppress if fine looks like:

-------------------------------------------------------  t e s t s ------------------------------------------------------- running net.initech.project.dawgs.actionfactory.interfaceactionfactorytest tests run: 14, failures: 0, errors: 0, skipped: 0, time elapsed: 0.425 sec running net.initech.project.dawgs.actionfactory.valuescopetest tests run: 8, failures: 0, errors: 0, skipped: 0, time elapsed: 0.001 sec running net.initech.project.dawgs.assertion.assertcontainstest tests run: 7, failures: 0, errors: 0, skipped: 0, time elapsed: 0.011 sec running net.initech.project.assertion.assertendswithtest tests run: 6, failures: 0, errors: 0, skipped: 0, time elapsed: 0.012 sec running net.initech.project.assertion.assertisequaltest tests run: 5, failures: 0, errors: 0, skipped: 0, time elapsed: 0.006 sec running net.initech.project.assertion.assertisliketest tests run: 6, failures: 0, errors: 0, skipped: 0, time elapsed: 0.012 sec running net.initech.project.assertion.assertstartswithtest tests run: 6, failures: 0, errors: 0, skipped: 0, time elapsed: 0.008 sec  results :  tests run: 52, failures: 0, errors: 0, skipped: 0 

no, not want pipe output /dev/null

try setting surefire.printsummary property false: this should print test cases have errors. try running mvn -q -dsurefire.printsummary=false.

alternatively, can put in pom.xml:

  <plugin>     <groupid>org.apache.maven.plugins</groupid>     <artifactid>maven-surefire-plugin</artifactid>     <configuration>                   <printsummary>false</printsummary>      </configuration>   </plugin> 

Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -