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

In pom.xml, the configuration junit.platform.launcher.interceptors.enabled does not work #3505

Closed
hengyunabc opened this issue Oct 16, 2023 · 1 comment

Comments

@hengyunabc
Copy link

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:

@sbrannen
Copy link
Member

Since you've verified that system property variables and the junit-platform.properties file both work, that indicates that Maven Surefire's support for <configurationParameters> appears to be broken.

In light of that, please open an issue in the Maven Surefire issue tracker.

Thanks

@sbrannen sbrannen closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2023
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

2 participants