Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-27050

Support unit test pattern matching again

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.5.0
    • 2.5.0, 3.0.0-alpha-3, 2.4.13
    • test
    • None
    • Reviewed

    Description

      Sometimes we want to run a build with a subset of unit tests to be executed over multiple modules, like:

      mvn clean install -DskipITs -Dtest=Test*Encode*

      which will execute some tests in common, some in server, etc. but not in checkstyle, which fails

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M6:test
      (default-test) on project hbase-checkstyle:
      No tests matching pattern "Test*Encode*" were executed!
      (Set -Dsurefire.failIfNoSpecifiedTests=false to ignore this error.) -> [Help 1]
      [ERROR] 
      

      We already set failIfNoTests to false in the surefire configuration. Apparently failIfNoSpecifiedTests is also necessary to support the above. When failIfNoSpecifiedTests is specified in the configuration or on the command line, surefire behaves as expected.

      This behavior has changed in branch-2.5 and up.

      Open to suggestions for other solutions.

      Attachments

        Issue Links

          Activity

            People

              apurtell Andrew Kyle Purtell
              apurtell Andrew Kyle Purtell
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: