Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-2203

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • None
    • None
    • JUnit 5.x support
    • 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:

      Attachments

        Activity

          People

            Unassigned Unassigned
            hengyunabc Hengyunabc Chen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: