Skip to content

Commit 29c75ca

Browse files
authored
HADOOP-19707: Add quiet-surefire profile for tests (#7998)
Adds the `quiet-surefire` profile to set enableOutErrElements=false for maven-surefire-plugin. This restores the behavior prior to Surefire 3.3 that stdout/stderr are not included in the TEST-<package>.<class>.xml file for passing tests. The newer default behavior results in much larger TEST-*.xml files that can be a problem for CI tools processing them. Contributed by Michael Smith
1 parent d092171 commit 29c75ca

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

hadoop-project/pom.xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2768,6 +2768,23 @@
27682768
<maven.compiler.release>${javac.version}</maven.compiler.release>
27692769
</properties>
27702770
</profile>
2771+
<profile>
2772+
<id>quiet-surefire</id>
2773+
<activation>
2774+
<activeByDefault>false</activeByDefault>
2775+
</activation>
2776+
<build>
2777+
<plugins>
2778+
<plugin>
2779+
<groupId>org.apache.maven.plugins</groupId>
2780+
<artifactId>maven-surefire-plugin</artifactId>
2781+
<configuration>
2782+
<enableOutErrElements>false</enableOutErrElements>
2783+
</configuration>
2784+
</plugin>
2785+
</plugins>
2786+
</build>
2787+
</profile>
27712788
</profiles>
27722789

27732790
<repositories>

0 commit comments

Comments
 (0)