You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "John Casey (JIRA)" <ji...@codehaus.org> on 2005/08/11 22:12:58 UTC

[jira] Commented: (MNG-442) devise way to pass artifacts to tests

    [ http://jira.codehaus.org/browse/MNG-442?page=comments#action_44327 ] 

John Casey commented on MNG-442:
--------------------------------

Are we talking about allowing the unit test methods, etc. actually get access to the testClasspathElements file list? If so, can we could create a utility class to register this file list in either a static variable or a ThreadLocal, but this will require the tests to depend on m2 to register these elements in the first place.

One alternative might be to supply a utility to parse a POM and retrieve the testClasspathElements from that...which is a little heavy to say the least. This would also require that the utility somehow knows where to get hold of the required artifacts to parse the POM and resolve it's dependencies.

> devise way to pass artifacts to tests
> -------------------------------------
>
>          Key: MNG-442
>          URL: http://jira.codehaus.org/browse/MNG-442
>      Project: Maven 2
>         Type: Improvement
>   Components: maven-plugins
>     Reporter: Brett Porter
>     Assignee: John Casey
>     Priority: Critical
>      Fix For: 2.0-beta-1

>
>
> currently, tests look for the maven.repo.local system property and guess at the path layout to be able to create a classpath with some jars that were test dependencies.
> It would be good to hand the test dependencies to the surefire tests directly.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org