You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "james strachan (JIRA)" <ji...@codehaus.org> on 2010/08/03 13:14:32 UTC

[jira] Created: (SUREFIRE-631) turn on useFile=false from the command line?

turn on useFile=false from the command line?
--------------------------------------------

                 Key: SUREFIRE-631
                 URL: http://jira.codehaus.org/browse/SUREFIRE-631
             Project: Maven Surefire
          Issue Type: Improvement
          Components: Maven Surefire Plugin
    Affects Versions: 2.5
            Reporter: james strachan


When running tests from the command line (e.g. "mvn test -Dtest=FooTest" actually showing on the console the summary and stack trace of failures is very useful.

However many projects have surefire configured in a root pom.xml and often has the default of useFile=true.

It would be nice to be able to do something like...

mvn test -Dtest=foo -DuseFile=false 

to be able to get a nice output of what the failed exception is and the stack trace etc.

It might be nice to enable useFile=false when -Dtest= is specified too.

How about we add a new field which maps to -DuseFile and if its specified then override the configuration from the pom.xml?

-- 
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-631) turn on useFile=false from the command line?

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

Kristian Rosenvold closed SUREFIRE-631.
---------------------------------------

    Resolution: Won't Fix
      Assignee: Kristian Rosenvold

This can also be fixed using a system property, as shown for skipTests here http://svn.apache.org/viewvc/maven/surefire/trunk/maven-surefire-plugin/src/site/apt/examples/skipping-test.apt.vm?view=markup


> turn on useFile=false from the command line?
> --------------------------------------------
>
>                 Key: SUREFIRE-631
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-631
>             Project: Maven Surefire
>          Issue Type: Improvement
>          Components: Maven Surefire Plugin
>    Affects Versions: 2.5
>            Reporter: james strachan
>            Assignee: Kristian Rosenvold
>
> When running tests from the command line (e.g. "mvn test -Dtest=FooTest" actually showing on the console the summary and stack trace of failures is very useful.
> However many projects have surefire configured in a root pom.xml and often has the default of useFile=true.
> It would be nice to be able to do something like...
> mvn test -Dtest=foo -DuseFile=false 
> to be able to get a nice output of what the failed exception is and the stack trace etc.
> It might be nice to enable useFile=false when -Dtest= is specified too.
> How about we add a new field which maps to -DuseFile and if its specified then override the configuration from the pom.xml?

-- 
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-631) turn on useFile=false from the command line?

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-631?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=230697#action_230697 ] 

Benjamin Bentmann commented on SUREFIRE-631:
--------------------------------------------

See http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html#useFile, i.e. -Dsurefire.useFile=false

> turn on useFile=false from the command line?
> --------------------------------------------
>
>                 Key: SUREFIRE-631
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-631
>             Project: Maven Surefire
>          Issue Type: Improvement
>          Components: Maven Surefire Plugin
>    Affects Versions: 2.5
>            Reporter: james strachan
>
> When running tests from the command line (e.g. "mvn test -Dtest=FooTest" actually showing on the console the summary and stack trace of failures is very useful.
> However many projects have surefire configured in a root pom.xml and often has the default of useFile=true.
> It would be nice to be able to do something like...
> mvn test -Dtest=foo -DuseFile=false 
> to be able to get a nice output of what the failed exception is and the stack trace etc.
> It might be nice to enable useFile=false when -Dtest= is specified too.
> How about we add a new field which maps to -DuseFile and if its specified then override the configuration from the pom.xml?

-- 
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