You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "rainLee (JIRA)" <ji...@codehaus.org> on 2012/02/22 10:07:03 UTC

[jira] (SUREFIRE-745) -Dtest supports multiple test classes but not multiple test methods

    [ https://jira.codehaus.org/browse/SUREFIRE-745?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=292414#comment-292414 ] 

rainLee commented on SUREFIRE-745:
----------------------------------

i have fixed this issue
can i submit a patch?
                
> -Dtest supports multiple test classes but not multiple test methods
> -------------------------------------------------------------------
>
>                 Key: SUREFIRE-745
>                 URL: https://jira.codehaus.org/browse/SUREFIRE-745
>             Project: Maven Surefire
>          Issue Type: Improvement
>         Environment: Apache Maven 3.0.2 (r1056850; 2011-01-08 19:58:10-0500)
> Java version: 1.6.0_24, vendor: Apple Inc.
> Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
> Default locale: en_CA, platform encoding: MacRoman
> OS name: "mac os x", version: "10.6.7", arch: "x86_64", family: "mac"
>            Reporter: reid holmes
>            Assignee: Olivier Lamy
>            Priority: Minor
>
> The -Dtest parameter is very handy for running a specific test class or test method. It also supports running multiple test classes. Unfortunately, it does not permit specifying running multiple test methods. It would be great if this were possible.
> The examples below are from the Apache Commons project.
> WORKS: Run multiple test classes:
> mvn test -Dtest=ImmutablePairTest,StopWatchTest
> WORKS: Run a specific test method:
> mvn test -Dtest=ImmutablePairTest#testBasic
> DOES NOT WORK:
> mvn test -Dtest=StopWatchTest#testStopWatchSimple,StopWatchTest#testStopWatchSimpleGet
> mvn test -Dtest=ImmutablePairTest#testBasic,StopWatchTest#testLang315

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira