You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Jason van Zyl (JIRA)" <ji...@codehaus.org> on 2007/05/31 17:56:59 UTC
[jira] Closed: (MNG-2628) (patch) If not necessary, don't extract
the integration tests to $TEMP
[ http://jira.codehaus.org/browse/MNG-2628?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jason van Zyl closed MNG-2628.
------------------------------
Resolution: Fixed
Already applied.
> (patch) If not necessary, don't extract the integration tests to $TEMP
> ----------------------------------------------------------------------
>
> Key: MNG-2628
> URL: http://jira.codehaus.org/browse/MNG-2628
> Project: Maven 2
> Issue Type: Improvement
> Components: integration tests
> Reporter: Dan Fabulich
> Attachments: 467135simpleExtractResources.txt
>
>
> Whenever you run the integration tests, they currently extract resources into $TEMP, even if the resources are already just lying around as files on the file system. Under this patch, tests can use "simpleExtractResources" to force the ResourceExtractor to guess the proper location where the tests should be run, and hand back a File pointing to the resources to use.
> To use this, the tests will need to be changed as well. The tests should now go like this:
> public void testit0000() throws Exception {
> File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/it0000");
> Verifier verifier = new Verifier( testDir.getAbsolutePath() );
> verifier.executeGoal( "package" );
> }
--
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