Skip to content

Commit c74e8e4

Browse files
committed
build: Update surefire and configure to redirect test output
Motivation: Some tests produce a lot of output which is currently sent to the screen. Modification: Update `maven-surefire-plugin` and configure it to send test output to a test-specific output file in the `surefire-reports` directory. Result: Screen output is cleaner for tests, and test failures can be more easily diagnosed by examining the ouptuts in the `surefire-reports` directory. Target: master Patch: https://rb.dcache.org/r/14526/ Requires-notes: NO Requires-book: NO Acked-By: Tigran Mkrtchyan
1 parent b2344ec commit c74e8e4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1157,7 +1157,7 @@
11571157
<plugin>
11581158
<groupId>org.apache.maven.plugins</groupId>
11591159
<artifactId>maven-surefire-plugin</artifactId>
1160-
<version>3.1.2</version>
1160+
<version>3.2.5</version>
11611161
<configuration>
11621162
<!-- Disable stack-trace trimming as
11631163
surefire makes bad decisions too often. -->
@@ -1375,6 +1375,7 @@
13751375
to accept the overhead of forking each test run. -->
13761376
<forkCount>1</forkCount>
13771377
<reuseForks>false</reuseForks>
1378+
<redirectTestOutputToFile>true</redirectTestOutputToFile>
13781379
<!-- Make Powermock compatible with JDK 17 -->
13791380
<argLine>
13801381
@{argLine}

0 commit comments

Comments
 (0)