You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Sami Nieminen (JIRA)" <ji...@codehaus.org> on 2011/04/06 11:23:22 UTC

[jira] Created: (SUREFIRE-723) All tests are executed when -Dtest= option is specified

All tests are executed when -Dtest= option is specified
-------------------------------------------------------

                 Key: SUREFIRE-723
                 URL: http://jira.codehaus.org/browse/SUREFIRE-723
             Project: Maven Surefire
          Issue Type: Bug
          Components: Maven Surefire Plugin
    Affects Versions: 2.8
         Environment: Kubuntu 10.10
Maven 2.2.1
            Reporter: Sami Nieminen


Before version 2.8 it was possible to generate the test jar packages without actually running the unit tests by specifying the option -Dtest= (mvn install -Dtest=). This has changed with 2.8 since now this option doesn't seem to have any effect, i.e. all the tests are executed.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (SUREFIRE-723) All tests are executed when -Dtest= option is specified

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

Olivier Lamy commented on SUREFIRE-723:
---------------------------------------

+1 for won't fix.


> All tests are executed when -Dtest= option is specified
> -------------------------------------------------------
>
>                 Key: SUREFIRE-723
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-723
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Surefire Plugin
>    Affects Versions: 2.8
>         Environment: Kubuntu 10.10
> Maven 2.2.1
>            Reporter: Sami Nieminen
>
> Before version 2.8 it was possible to generate the test jar packages without actually running the unit tests by specifying the option -Dtest= (mvn install -Dtest=). This has changed with 2.8 since now this option doesn't seem to have any effect, i.e. all the tests are executed.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (SUREFIRE-723) All tests are executed when -Dtest= option is specified

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

Sami Nieminen closed SUREFIRE-723.
----------------------------------

    Resolution: Won't Fix

> All tests are executed when -Dtest= option is specified
> -------------------------------------------------------
>
>                 Key: SUREFIRE-723
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-723
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Surefire Plugin
>    Affects Versions: 2.8
>         Environment: Kubuntu 10.10
> Maven 2.2.1
>            Reporter: Sami Nieminen
>
> Before version 2.8 it was possible to generate the test jar packages without actually running the unit tests by specifying the option -Dtest= (mvn install -Dtest=). This has changed with 2.8 since now this option doesn't seem to have any effect, i.e. all the tests are executed.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (SUREFIRE-723) All tests are executed when -Dtest= option is specified

Posted by "Sami Nieminen (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-723?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=267568#action_267568 ] 

Sami Nieminen commented on SUREFIRE-723:
----------------------------------------

It's ok when there is option skipTests. I will close this.

> All tests are executed when -Dtest= option is specified
> -------------------------------------------------------
>
>                 Key: SUREFIRE-723
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-723
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Surefire Plugin
>    Affects Versions: 2.8
>         Environment: Kubuntu 10.10
> Maven 2.2.1
>            Reporter: Sami Nieminen
>
> Before version 2.8 it was possible to generate the test jar packages without actually running the unit tests by specifying the option -Dtest= (mvn install -Dtest=). This has changed with 2.8 since now this option doesn't seem to have any effect, i.e. all the tests are executed.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (SUREFIRE-723) All tests are executed when -Dtest= option is specified

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

Kristian Rosenvold commented on SUREFIRE-723:
---------------------------------------------

The change is probably real, but as Olivier points out there's a more appropriate way of achieving this effect.

So even though the semantics of an empty test expression seem to have changed from "include none" to "include all", I will be proposing this as won't fix. Feel free to suggest why not.

> All tests are executed when -Dtest= option is specified
> -------------------------------------------------------
>
>                 Key: SUREFIRE-723
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-723
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Surefire Plugin
>    Affects Versions: 2.8
>         Environment: Kubuntu 10.10
> Maven 2.2.1
>            Reporter: Sami Nieminen
>
> Before version 2.8 it was possible to generate the test jar packages without actually running the unit tests by specifying the option -Dtest= (mvn install -Dtest=). This has changed with 2.8 since now this option doesn't seem to have any effect, i.e. all the tests are executed.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (SUREFIRE-723) All tests are executed when -Dtest= option is specified

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

Olivier Lamy commented on SUREFIRE-723:
---------------------------------------

You can use -DskipTests [http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html#skipTests]


> All tests are executed when -Dtest= option is specified
> -------------------------------------------------------
>
>                 Key: SUREFIRE-723
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-723
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Surefire Plugin
>    Affects Versions: 2.8
>         Environment: Kubuntu 10.10
> Maven 2.2.1
>            Reporter: Sami Nieminen
>
> Before version 2.8 it was possible to generate the test jar packages without actually running the unit tests by specifying the option -Dtest= (mvn install -Dtest=). This has changed with 2.8 since now this option doesn't seem to have any effect, i.e. all the tests are executed.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira