Bug 94469 - "Ru As > JUnit Plug-in Test " appears for JUnit tests that are not in a plug-in
Summary: "Ru As > JUnit Plug-in Test " appears for JUnit tests that are not in a plug-in
Status: RESOLVED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 RC1   Edit
Assignee: PDE-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-10 14:36 EDT by Darin Wright CLA
Modified: 2005-05-17 14:11 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Darin Wright CLA 2005-05-10 14:36:59 EDT
The launch shortcut for JUnit plug-in tests appears for all JUnit tests, 
regardless of whether they live in a plug-in project.

It would be nice to have this test performed up front (if fast enough), to 
avoid having the optional available. When invoked, it fails with "Could not 
determinte plugin ID - project is not a plugin".
Comment 1 Konrad Kolosowski CLA 2005-05-17 13:57:38 EDT
Fixed.  by adding
<test property="org.eclipse.debug.ui.projectNature" 
value="org.eclipse.pde.PluginNature"/>
to the launchShortcuts extension.

I have considered using PDE tester, instead of relying on 
org.eclipse.debug.ui, but the fact that testers are not used unless they are 
already loaded means that without PDE opened the tester would not run.  
org.eclipse.debug.ui is loaded much easier.
Comment 2 Darin Wright CLA 2005-05-17 14:06:04 EDT
We intend this property tester to be used as API, so you're plug-in does not 
need to be loaded for the test to work.
Comment 3 Konrad Kolosowski CLA 2005-05-17 14:11:55 EDT
Great.  I did not see it in documenation, but we are already using it in other 
places of PDE manifest.  Thanks for clarification.