Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 324807 - [build] Hide "Show test results" if there is no junit support
Summary: [build] Hide "Show test results" if there is no junit support
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 minor (vote)
Target Milestone: 0.7   Edit
Assignee: Steffen Pingel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 323797
  Show dependency tree
 
Reported: 2010-09-08 19:35 EDT by Benjamin Muskalla CLA
Modified: 2011-01-05 14:44 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.