(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

        

Reply via email to