You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ti...@apache.org on 2021/03/11 21:59:56 UTC

[maven-surefire] branch master updated: [SUREFIRE-1893] New maven-surefire JUnit5 extension by Fabricio Yamamoto

This is an automated email from the ASF dual-hosted git repository.

tibordigana pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git


The following commit(s) were added to refs/heads/master by this push:
     new c00ffe7  [SUREFIRE-1893] New maven-surefire JUnit5 extension by Fabricio Yamamoto
c00ffe7 is described below

commit c00ffe702abc5498f4963f89948c609b475dd9e5
Author: tibordigana <ti...@gmail.com>
AuthorDate: Thu Mar 11 22:59:46 2021 +0100

    [SUREFIRE-1893] New maven-surefire JUnit5 extension by Fabricio Yamamoto
---
 .../src/site/apt/examples/junit-platform.apt.vm    |  34 +++++++++++++++++++++
 .../src/site/resources/examples/extension1.png     | Bin 0 -> 73608 bytes
 2 files changed, 34 insertions(+)

diff --git a/maven-surefire-plugin/src/site/apt/examples/junit-platform.apt.vm b/maven-surefire-plugin/src/site/apt/examples/junit-platform.apt.vm
index ef5c014..44159de 100644
--- a/maven-surefire-plugin/src/site/apt/examples/junit-platform.apt.vm
+++ b/maven-surefire-plugin/src/site/apt/examples/junit-platform.apt.vm
@@ -601,3 +601,37 @@ else
    The aim of extensions is to let the users customizing the default behavior. We are keen on listing useful
    extensions on Apache Maven Surefire site if you propagate your extensions on GitHub.
 
+
+* External extensions for the plugin
+
+   This extension prints a tree view for the unit tests on the console.
+   This is related to JUnit5 tests.
+
+[extension1.png] The console with this extension.
+
+   Follow the example with the configuration and the dependency in the plugin.
+
++---+
+...
+<plugin>
+    <groupId>${project.groupId}</groupId>
+    <artifactId>maven-surefire-plugin</artifactId>
+    <version>${project.version}</version>
+    <dependencies>
+        <dependency>
+            <groupId>me.fabriciorby</groupId>
+            <artifactId>maven-surefire-junit5-tree-reporter</artifactId>
+            <version>0.1.0</version>
+        </dependency>
+    </dependencies>
+    <configuration>
+        <reportFormat>plain</reportFormat>
+        <consoleOutputReporter>
+            <disable>true</disable>
+        </consoleOutputReporter>
+        <statelessTestsetInfoReporter implementation="org.apache.maven.plugin.surefire.extensions.junit5.JUnit5StatelessTestsetInfoTreeReporter"/>
+    </configuration>
+</plugin>
+...
++---+
+
diff --git a/maven-surefire-plugin/src/site/resources/examples/extension1.png b/maven-surefire-plugin/src/site/resources/examples/extension1.png
new file mode 100644
index 0000000..59e9fae
Binary files /dev/null and b/maven-surefire-plugin/src/site/resources/examples/extension1.png differ