Maven 1.x Test Plugin
  1. Maven 1.x Test Plugin
  2. MPTEST-48

test:match should support specifying an ant pattern style match

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.7
    • Labels:
      None
    • Environment:
      Maven 1.0.2
      Test plugin 1.6.2
    • Number of attachments :
      0

      Description

      When using test:match, you can only match a certain name of a test class, because it is defined like this:

      <fileset dir="$

      {maven.test.searchdir}">
      <include name="*/${testmatch}."/>
      </fileset>

      I would like for example to match all unit test in a package called 'integration'. If I do:

      maven -Dtestmatch=*/integration//.* test:match

      then this does not work. It would work if the jelly script was changed to:


      <fileset dir="${maven.test.searchdir}

      ">
      <include name="$

      {testmatch}

      />
      </fileset>

      regards,

      Wim

        Activity

        Hide
        Carlos Sanchez added a comment -

        Deprecated testmatch in favor of testmatchpattern property

        Show
        Carlos Sanchez added a comment - Deprecated testmatch in favor of testmatchpattern property

          People

          • Assignee:
            Carlos Sanchez
            Reporter:
            Wim Deblauwe
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 15 minutes
              15m
              Remaining:
              Remaining Estimate - 15 minutes
              15m
              Logged:
              Time Spent - Not Specified
              Not Specified