You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "reid holmes (JIRA)" <ji...@codehaus.org> on 2011/06/14 19:54:42 UTC

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

-Dtest supports multiple test classes but not multiple test methods
-------------------------------------------------------------------

                 Key: SUREFIRE-745
                 URL: http://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
            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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "rainLee (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/SUREFIRE-745?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=292806#comment-292806 ] 

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

yeah, Olivier.
mtClass#myMethod* does still work and the integration test is passed

ok, i'll take Robert's opinion and refresh the patch later
                
> -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
>         Attachments: multipleMethods.patch, multipleMethods-v2.patch, multipleMethods-v3.patch
>
>
> 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

        

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

Posted by "Robert Scholte (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/SUREFIRE-745?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=292570#comment-292570 ] 

Robert Scholte commented on SUREFIRE-745:
-----------------------------------------

I noticed that {{mtClass#myMethod#myMethod2,secondClass#testMethod}} would become a valid expression.
IMO the {{#}} is a class-to-method separator. My suggestion would be to use {{+}} between methods: 
{{mtClass#myMethod+myMethod2,secondClass#testMethod}} 
                
> -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
>         Attachments: multipleMethods.patch, multipleMethods-v2.patch, multipleMethods-v3.patch
>
>
> 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

        

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

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/SUREFIRE-745?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=292825#comment-292825 ] 

Olivier Lamy commented on SUREFIRE-745:
---------------------------------------

As I see only it test for junit 4.4: does that work with all junit 4.x versions ?

                
> -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
>         Attachments: multipleMethods.patch, multipleMethods-v2.patch, multipleMethods-v3.patch, multipleMethods-v4.patch, SUREFIRE-745.patch
>
>
> 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

        

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

Posted by "rainLee (JIRA)" <ji...@codehaus.org>.
    [ 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

        

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

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/SUREFIRE-745?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=292821#comment-292821 ] 

Olivier Lamy commented on SUREFIRE-745:
---------------------------------------

why all of those changes:
{code}
   <parent>
     <groupId>org.apache.maven.surefire</groupId>
     <artifactId>surefire-providers</artifactId>
-    <version>2.8</version>
+    <version>2.8-itest</version>
     <relativePath>../pom.xml</relativePath>
   </parent>
{code}
                
> -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
>         Attachments: multipleMethods.patch, multipleMethods-v2.patch, multipleMethods-v3.patch, multipleMethods-v4.patch, SUREFIRE-745.patch
>
>
> 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

        

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

Posted by "rainLee (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/SUREFIRE-745?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

rainLee updated SUREFIRE-745:
-----------------------------

    Attachment: multipleMethods-v4.patch

change method-method separator from "#" to "+"
                
> -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
>         Attachments: multipleMethods.patch, multipleMethods-v2.patch, multipleMethods-v3.patch, multipleMethods-v4.patch
>
>
> 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

        

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

Posted by "rainLee (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/SUREFIRE-745?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

rainLee updated SUREFIRE-745:
-----------------------------

    Attachment: SUREFIRE-745.patch

sure.
sorry to make you wield.cause this is my first time submit a patch to the community.
I should have known this before i submit.
thanks for reminding me:)
                
> -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
>         Attachments: multipleMethods.patch, multipleMethods-v2.patch, multipleMethods-v3.patch, multipleMethods-v4.patch, SUREFIRE-745.patch
>
>
> 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

        

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

Posted by "rainLee (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/SUREFIRE-745?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=292966#comment-292966 ] 

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

my pleasure:-)
                
> -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
>             Fix For: 2.13
>
>         Attachments: multipleMethods.patch, multipleMethods-v2.patch, multipleMethods-v3.patch, multipleMethods-v4.patch, SUREFIRE-745.patch, SUREFIRE-745-v2.patch
>
>
> 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

        

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

Posted by "rainLee (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/SUREFIRE-745?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

rainLee updated SUREFIRE-745:
-----------------------------

    Attachment: multipleMethods-v3.patch

add integrated test
                
> -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
>         Attachments: multipleMethods.patch, multipleMethods-v2.patch, multipleMethods-v3.patch
>
>
> 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

        

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

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/SUREFIRE-745?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=292812#comment-292812 ] 

Olivier Lamy commented on SUREFIRE-745:
---------------------------------------

can you generate a patch from top level using svn diff > SUREFIRE-745.patch
It looks you generate this with eclipse which means I cannot apply it using cli (as I use intellij :P ) 
And sorry to bother you :-) .
                
> -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
>         Attachments: multipleMethods.patch, multipleMethods-v2.patch, multipleMethods-v3.patch, multipleMethods-v4.patch
>
>
> 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

        

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

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/SUREFIRE-745?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=292416#comment-292416 ] 

Olivier Lamy commented on SUREFIRE-745:
---------------------------------------

sure :-)
with it test integrated ?
                
> -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

        

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

Posted by "rainLee (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/SUREFIRE-745?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=292485#comment-292485 ] 

rainLee edited comment on SUREFIRE-745 at 2/22/12 11:58 PM:
------------------------------------------------------------

submit my patch that created from version 2.8
and my patch support -Dtest=xxx.xxx.ATest#testMethod1#testMethod2,xxx.xxx.BTest#testMethod3
                
      was (Author: ytsolar):
    submit my patch that created from version 2.8
and my patch support -Dtest=**.**.ATest#testMethod1#testMethod2,**.**.BTest#testMethod3
                  
> -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
>         Attachments: multipleMethods.patch
>
>
> 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

        

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

Posted by "rainLee (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/SUREFIRE-745?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=292822#comment-292822 ] 

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

oh,sorry,i have already used this feature in my own maven repository,so i changed the version.
i'll revert this soon
                
> -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
>         Attachments: multipleMethods.patch, multipleMethods-v2.patch, multipleMethods-v3.patch, multipleMethods-v4.patch, SUREFIRE-745.patch
>
>
> 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

        

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

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/SUREFIRE-745?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=292781#comment-292781 ] 

Olivier Lamy commented on SUREFIRE-745:
---------------------------------------

agree with Robert.
BTW mtClass#myMethod* must still work and execute both myMethod AND myMethod2.
I think there is an integration test for that.
                
> -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
>         Attachments: multipleMethods.patch, multipleMethods-v2.patch, multipleMethods-v3.patch
>
>
> 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

        

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

Posted by "rainLee (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/SUREFIRE-745?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=292481#comment-292481 ] 

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

my patch is created from version 2.8
should i created from trunk?
                
> -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

        

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

Posted by "rainLee (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/SUREFIRE-745?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

rainLee updated SUREFIRE-745:
-----------------------------

    Attachment: multipleMethods.patch

submit my patch that created from version 2.8
                
> -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
>         Attachments: multipleMethods.patch
>
>
> 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

        

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

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/SUREFIRE-745?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olivier Lamy closed SUREFIRE-745.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 2.13

fixed r1294568.
                
> -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
>             Fix For: 2.13
>
>         Attachments: multipleMethods.patch, multipleMethods-v2.patch, multipleMethods-v3.patch, multipleMethods-v4.patch, SUREFIRE-745.patch, SUREFIRE-745-v2.patch
>
>
> 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

        

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

Posted by "rainLee (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/SUREFIRE-745?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

rainLee updated SUREFIRE-745:
-----------------------------

    Attachment: SUREFIRE-745-v2.patch

update patch
remove pom modification
add junit48 integration test
                
> -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
>         Attachments: multipleMethods.patch, multipleMethods-v2.patch, multipleMethods-v3.patch, multipleMethods-v4.patch, SUREFIRE-745.patch, SUREFIRE-745-v2.patch
>
>
> 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

        

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

Posted by "rainLee (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/SUREFIRE-745?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

rainLee updated SUREFIRE-745:
-----------------------------

    Attachment: multipleMethods-v2.patch

update my patch.
this patch is created from trunk:)
                
> -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
>         Attachments: multipleMethods.patch, multipleMethods-v2.patch
>
>
> 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

        

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

Posted by "rainLee (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/SUREFIRE-745?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=292620#comment-292620 ] 

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

should I take Robert's opinion?
                
> -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
>         Attachments: multipleMethods.patch, multipleMethods-v2.patch, multipleMethods-v3.patch
>
>
> 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

        

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

Posted by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/SUREFIRE-745?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=292493#comment-292493 ] 

Kristian Rosenvold commented on SUREFIRE-745:
---------------------------------------------

Patches should always be created from trunk. 
                
> -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
>         Attachments: multipleMethods.patch
>
>
> 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

        

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

Posted by "rainLee (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/SUREFIRE-745?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=292485#comment-292485 ] 

rainLee edited comment on SUREFIRE-745 at 2/22/12 11:57 PM:
------------------------------------------------------------

submit my patch that created from version 2.8
and my patch support -Dtest=**.**.ATest#testMethod1#testMethod2,**.**.BTest#testMethod3
                
      was (Author: ytsolar):
    submit my patch that created from version 2.8
                  
> -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
>         Attachments: multipleMethods.patch
>
>
> 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

        

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

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/SUREFIRE-745?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=292906#comment-292906 ] 

Olivier Lamy edited comment on SUREFIRE-745 at 2/28/12 4:50 AM:
----------------------------------------------------------------

fixed r1294568.
Thanks !
                
      was (Author: olamy):
    fixed r1294568.
                  
> -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
>             Fix For: 2.13
>
>         Attachments: multipleMethods.patch, multipleMethods-v2.patch, multipleMethods-v3.patch, multipleMethods-v4.patch, SUREFIRE-745.patch, SUREFIRE-745-v2.patch
>
>
> 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