Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 327862

Summary: Cannot use org.eclipse.test as part of my RCP application
Product: [Eclipse Project] Platform Reporter: Udo Walker <Udo.Walker>
Component: RelengAssignee: Kim Moir <kim.moir>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: kim.moir
Version: 4.1   
Target Milestone: 3.7 M3   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
patch none

Description Udo Walker CLA 2010-10-15 04:37:52 EDT
Build Identifier: eclipse-test-framework-3.6.1

I have a RCP application which does not use p2 so I do not have a dropins directory. I want to test my RCP application with the eclipse test framework. 
To do this I do the following:

1. I declared a test feature which contains my RCP product feature and the test plugins and org.eclipse.test plugins
2. I run an eclipse headless as explained in the file testframework.html which is included in the plugin org.eclipse.test. 

My RCP product only contains the sub-folders features and plugins. The eclipse test framework is contained in these 2 directories. 

When I run the test the library.xml file from the test framework wants to execute a xstl transformation at the end of a test. 

But path to the JUNIT.XSL file is:

${eclipse-home}/dropins/eclipse/plugins/org.eclipse.test/JUNIT.XSL

I do not have the "dropins" directory. The second problem is that in my case the org.eclipse.test plugin is "built" as binary (I told the feature to unpack it, so I can access the files) and so it contains a version number in its directory name. 

In my case the path should be:

${eclipse-home}/plugins/org.eclipse.test_3.3.0/JUNIT.XSL

To fix that problem it would be nice to have an ANT property to specify the location of the JUNIT.XSL file.


Reproducible: Always
Comment 1 Kim Moir CLA 2010-10-18 10:16:34 EDT
Created attachment 181099 [details]
patch
Comment 2 Kim Moir CLA 2010-10-18 10:17:07 EDT
fixed for N20101018.
Comment 3 Udo Walker CLA 2010-10-18 10:29:12 EDT
Thanks, great.