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

Bug 349257

Summary: Open JUnit view from test failure link
Product: z_Archived Reporter: Brock Janiczak <brockj>
Component: m2eAssignee: Project Inbox <m2e.core-inbox>
Status: CLOSED INVALID QA Contact:
Severity: enhancement    
Priority: P3 CC: greenrd, igor
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Patch to open with junit view if possible none

Description Brock Janiczak CLA 2011-06-13 21:34:44 EDT
M2E currently has the ability to show test failures in a text editor when you click on the test name in the console.

I would like to extend this to display the JUnit view first if possible and display the text editor if no XML file is found.  A patch can be provided if needed, however i do know that this feature probably wouldn't work for people using TestNG
Comment 1 Brock Janiczak CLA 2011-06-15 23:50:42 EDT
Created attachment 198061 [details]
Patch to open with junit view if possible

I have added a simple patch that seems to work for me.  There should probably be checks to see if the content types aren't available (junit plugin not installed), but i can't see that ever being the case.  It could also try to fallback if the junit view fails to open
Comment 2 Igor Fedorenko CLA 2013-09-28 23:38:08 EDT
closing old/stale bugreports
Comment 3 Denis Roy CLA 2021-04-19 13:21:55 EDT
Moved to https://github.com/eclipse-m2e/m2e-core/issues/