Skip to content

Commit 4973aca

Browse files
committed
Add a profile for nicer unit test output
Uses the excellent maven-surefire-junit5-tree-reporter: https://github.com/fabriciorby/maven-surefire-junit5-tree-reporter
1 parent 845ce0b commit 4973aca

File tree

1 file changed

+35
-1
lines changed

1 file changed

+35
-1
lines changed

pom.xml

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>org.scijava</groupId>
66
<artifactId>pom-scijava-base</artifactId>
7-
<version>21.1.1-SNAPSHOT</version>
7+
<version>21.2.0-SNAPSHOT</version>
88
<packaging>pom</packaging>
99

1010
<name>SciJava Base POM</name>
@@ -1490,6 +1490,40 @@
14901490
</properties>
14911491
</profile>
14921492

1493+
<!--
1494+
The pretty-test profile makes it easier to read the output of unit tests.
1495+
Activate it by passing `-Ppretty-test` to the mvn execution.
1496+
-->
1497+
<profile>
1498+
<id>pretty-test</id>
1499+
<properties>
1500+
<maven-surefire-junit5-tree-reporter.version>1.1.0</maven-surefire-junit5-tree-reporter.version>
1501+
</properties>
1502+
<build>
1503+
<plugins>
1504+
<plugin>
1505+
<artifactId>maven-surefire-plugin</artifactId>
1506+
<dependencies>
1507+
<dependency>
1508+
<groupId>me.fabriciorby</groupId>
1509+
<artifactId>maven-surefire-junit5-tree-reporter</artifactId>
1510+
<version>${maven-surefire-junit5-tree-reporter.version}</version>
1511+
</dependency>
1512+
</dependencies>
1513+
<configuration>
1514+
<reportFormat>plain</reportFormat>
1515+
<!-- The following block suppresses all console output during unit testing.
1516+
<consoleOutputReporter>
1517+
<disable>true</disable>
1518+
</consoleOutputReporter>
1519+
-->
1520+
<statelessTestsetInfoReporter implementation="org.apache.maven.plugin.surefire.extensions.junit5.JUnit5StatelessTestsetInfoTreeReporterUnicode"/>
1521+
</configuration>
1522+
</plugin>
1523+
</plugins>
1524+
</build>
1525+
</profile>
1526+
14931527
<!--
14941528
The run-its profile enables execution of maven-invoker-plugin-based
14951529
integration tests. Activate it by passing `-Prun-its` to the mvn execution.

0 commit comments

Comments
 (0)