pitest-junit5-plugin
pitest-junit5-plugin copied to clipboard
Custom JUnit5 runner doesn't load custom extension automatically, failing our tests
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