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

Bug 324807

Summary: [build] Hide "Show test results" if there is no junit support
Product: z_Archived Reporter: Benjamin Muskalla <b.muskalla>
Component: MylynAssignee: Steffen Pingel <steffen.pingel>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: P3    
Version: unspecified   
Target Milestone: 0.7   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on:    
Bug Blocks: 323797    

Description Benjamin Muskalla CLA 2010-09-08 19:35:26 EDT
Currently the junit support is defined as optional dependency and the "Show test results" fails with a NoClassDefFoundError in case you don't have the junit plugins in your eclipse. Maybe we should factor this out into a org.eclipse.mylyn.builds.ui.jdt bundle that has a hard requirement on JDT and JUnit instead of hardcoding it into the regular ui bundle.


java.lang.NoClassDefFoundError: org/eclipse/jdt/internal/junit/model/TestRunSession
	at org.eclipse.mylyn.internal.builds.ui.commands.ShowTestResultsHandler.execute(ShowTestResultsHandler.java:42)
Comment 1 Steffen Pingel CLA 2010-09-08 19:50:51 EDT
Yes, that could make sense in the future but for now I would like to keep it in the main UI bundle to avoid creating lots of integration bundles for the different dependencies. I'll look into fixing the action enablement to not show the actions unless JUnit is available. Same needs to be done for the console.
Comment 2 Steffen Pingel CLA 2010-09-12 02:03:22 EDT
Should be fixed in head. The menu items are hidden if junit or the console are not available.