Details
-
Bug
-
Status: Open
-
Trivial
-
Resolution: Unresolved
-
None
-
None
-
None
Description
In pom.xml, the configuration junit.platform.launcher.interceptors.enabled does not work.
The following configuration does not take effect:
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.1.2</version>
<configuration>
<properties>
<configurationParameters>
junit.platform.launcher.interceptors.enabled=true
</configurationParameters>
</properties>
</configuration>
The following configuration can work:
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.1.2</version>
<configuration>
<systemPropertyVariables>
<junit.platform.launcher.interceptors.enabled>true</junit.platform.launcher.interceptors.enabled>
</systemPropertyVariables>
</configuration>
Or configuring it in the junit-platform.properties file will also work.
Reference documentation: