You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2024/06/26 21:02:00 UTC
[jira] [Commented] (SUREFIRE-2203) In pom.xml, the configurationParameters configuration junit.platform.launcher.interceptors.enabled does not work
[ https://issues.apache.org/jira/browse/SUREFIRE-2203?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17860255#comment-17860255 ]
Michael Osipov commented on SUREFIRE-2203:
------------------------------------------
Is this one still valid? Do you have a sample project for that?
> In pom.xml, the configurationParameters configuration junit.platform.launcher.interceptors.enabled does not work
> ----------------------------------------------------------------------------------------------------------------
>
> Key: SUREFIRE-2203
> URL: https://issues.apache.org/jira/browse/SUREFIRE-2203
> Project: Maven Surefire
> Issue Type: Bug
> Components: JUnit 5.x support
> Reporter: Hengyunabc Chen
> Priority: Trivial
>
> In pom.xml, the configuration {{junit.platform.launcher.interceptors.enabled}} does not work.
> The following configuration does not take effect:
> {code:java}
> <plugin>
> <artifactId>maven-surefire-plugin</artifactId>
> <version>3.1.2</version>
> <configuration>
> <properties>
> <configurationParameters>
> junit.platform.launcher.interceptors.enabled=true
> </configurationParameters>
> </properties>
> </configuration> {code}
>
> The following configuration can work:
> {code:java}
> <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> {code}
>
> Or configuring it in the {{junit-platform.properties}} file will also work.
> Reference documentation:
> * [https://junit.org/junit5/docs/snapshot/user-guide/#launcher-api-launcher-interceptors-custom]
> * [https://junit.org/junit5/docs/snapshot/user-guide/#running-tests-build-maven-config-params]
> * [https://maven.apache.org/surefire/maven-surefire-plugin/examples/junit-platform.html#configuration-parameters]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)