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

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

Open
vmassol opened this issue Sep 13, 2019 · 0 comments

Comments

@vmassol
Copy link

vmassol commented Sep 13, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant