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

If no tests are found that would match a given JUnit category, mvn test should not fail in multi-module project

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.12
    • 2.13
    • None

    Description

      In a multi-module project, I configured Surefire to execute tests of a selected JUnit category only. Unfortunately, not all modules contain tests in that category, which makes mvn test fail:

      Tests in error:
      initializationError(org.junit.runner.manipulation.Filter): No tests found matching *foo.junit.categories.SlowTests from org.junit.runner.Request$1@15a

      If a module does not contain any test that would match the given category, Surefire should continue instead. Note that specifying -DfailIfNoTests=false does not help in that case.

      Attachments

        Issue Links

          Activity

            People

              krosenvold Kristian Rosenvold
              mburger Martin Burger
              Votes:
              7 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: