pitest-junit5-plugin icon indicating copy to clipboard operation
pitest-junit5-plugin copied to clipboard

Custom JUnit5 runner doesn't load custom extension automatically, failing our tests

Open vmassol opened this issue 6 years ago • 0 comments

We use JUnit5 and one of our test depends on a custom JUnit5 Extension being active. We activate it using the junit.jupiter.extensions.autodetection.enabled=true system property defined in our pom.xml:

        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-surefire-plugin</artifactId>
            <systemProperties>
              <property>
                <name>junit.jupiter.extensions.autodetection.enabled</name>
                <value>true</value>
              </property>
            </systemProperties>
          </configuration>
        </plugin>

When we run our test with the maven pitest plugin, the extension is not active and the test fails.

Thanks

vmassol avatar Sep 13 '19 09:09 vmassol