Maven 1.x Test Plugin

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
  • Component/s: None
  • 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

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved:

Time Tracking

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