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

Remove unnecessary surefire excludes #26

Open
svettwer opened this issue Apr 21, 2018 · 0 comments
Open

Remove unnecessary surefire excludes #26

svettwer opened this issue Apr 21, 2018 · 0 comments

Comments

@svettwer
Copy link
Contributor

The maven-surefire documentation states:

By default, the Surefire Plugin will automatically include all test classes with the following wildcard patterns:

* "**/Test*.java" - includes all of its subdirectories and all Java filenames that start with "Test".
* "**/*Test.java" - includes all of its subdirectories and all Java filenames that end with "Test".
* "**/*Tests.java" - includes all of its subdirectories and all Java filenames that end with "Tests".
* "**/*TestCase.java" - includes all of its subdirectories and all Java filenames that end with "TestCase".

Therefore it's not required to exclude (^IT.*|.*IT)\.java tests in the configuration.

<plugin>
  <artifactId>maven-surefire-plugin</artifactId>
  <version>2.</version>
  <configuration>
    <forkMode>once</forkMode>
    <failIfNoTests>false</failIfNoTests>
    <!-- Not required -->
    <!-- <excludes> -->
      <!-- <exclude>**/IT*.java</exclude> -->
      <!-- <exclude>**/*IT.java</exclude> -->
    <!-- </excludes> -->
    <workingDirectory>${project.build.directory}</workingDirectory>
  </configuration>
</plugin>
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

1 participant