You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Andreas Sewe (JIRA)" <ji...@codehaus.org> on 2010/01/10 14:25:55 UTC

[jira] Commented: (SUREFIRE-569) There should be a way to run unit tests from a dependency jar.

    [ http://jira.codehaus.org/browse/SUREFIRE-569?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=206076#action_206076 ] 

Andreas Sewe commented on SUREFIRE-569:
---------------------------------------

One drawback of simply using {{dependency:unpack}} as a workaround is that the plugin doesn't work properly in conjunction with M2Eclipse's workspace resolution mechanism (cf. [https://issues.sonatype.org/browse/MNGECLIPSE-1027]). That being said, Thomas's argument should be convincing enough by itself. ;-)

> There should be a way to run unit tests from a dependency jar.
> --------------------------------------------------------------
>
>                 Key: SUREFIRE-569
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-569
>             Project: Maven Surefire
>          Issue Type: New Feature
>          Components: Maven Surefire Plugin
>            Reporter: Paul Gier
>
> In some cases it would be useful to have a set of tests that run with various dependency configurations.  One way to accomplish this would be to have a single project that contains the unit tests and generates a test jar.  Several test configuration projects could then consume the unit tests and run them with different dependency sets.  The problem is that there is no easy way to run tests in a dependency jar.  The surefire plugin should have a configuration to allow me to run all or a set of unit tests contained in a dependency jar.

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