Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document that the junit.platform.launcher.interceptors.enabled configuration parameter must be passed as system property or via properties file #3877

Closed
hengyunabc opened this issue Jul 2, 2024 · 0 comments

Comments

@hengyunabc
Copy link

Steps to reproduce

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:

@marcphilipp marcphilipp changed the title In pom.xml, the configurationParameters configuration junit.platform.launcher.interceptors.enabled does not work Document that the junit.platform.launcher.interceptors.enabled configuration parameter must be passed as system property or via properties file Jul 2, 2024
@sbrannen sbrannen added this to the 5.11 M3 milestone Jul 2, 2024
@marcphilipp marcphilipp modified the milestones: 5.11 RC1, 5.11 GA Jul 30, 2024
@marcphilipp marcphilipp self-assigned this Aug 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants