I get the following in my mvn output:
Running com.MyTest
Tests run: 1 , Failures: 0 , Errors: 0 , Skipped: 0 , Time elapsed: 0.02 sec - in com.MyTest
despite having the flags:
-Dsurefire.printSummary=false -Dsurefire.useFile=true
Is there a way to hide the first line - Running com.MyTest
?
More information
It should be irrelevant, but I also add this:
-Dlogback.configurationFile=/Users/me/logback.xml
with the logback.xml containing:
<configuration>
<root level="OFF">
<appender-ref ref="STDOUT" />
</root>
</configuration>
pom.xml surefire configuration
<project>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven.surefire.plugin}</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven.surefire.plugin}</version>
<configuration>
<includes>
<include>**/*Test.class</include>
</includes>
<parallel>classes</parallel>
<threadCount>10</threadCount>
<useFile>false</useFile>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>coverage-per-test</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.15</version>
<configuration>
<properties>
<property>
<name>listener</name>
<value>org.sonar.java.jacoco.JUnitListener</value>
</property>
</properties>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>