| Summary: | [JUnit] Add context menu action to import junit test results from package explorer | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Brock Janiczak <brockj> | ||||||
| Component: | UI | Assignee: | Markus Keller <markus.kell.r> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | enhancement | ||||||||
| Priority: | P4 | CC: | daniel_megert, markus.kell.r | ||||||
| Version: | 3.4 | Keywords: | helpwanted | ||||||
| Target Milestone: | 3.5 M2 | Flags: | markus.kell.r:
review+
|
||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Brock Janiczak
Created attachment 85761 [details]
Patch to org.eclipse.jdt.junit
I'm not hot on adding this content type as this probably won't be used often and has performance implications for all existing XML types and files (see bug 182337 for example). I suggest to also allow importing from existing projects. Markus please comment. Perhaps an alternative is to use a file system/workspace selection dialog, like in the patch creation wizard? I'm also not keen on adding an objectContribution for this. Maybe we could add it as an editor such that you can use 'Open With > JUnit View' to open test runs. We should do this via a contribution to 'org.eclipse.ui.editors', using the 'launcher' attribute to supply an IEditorLauncher for test result files in the workspace. Created attachment 109722 [details]
JUnit view editor launcher
This patch should work for both surefire and ant based junit reports. It needs to define a new content type so the open with junit view is not shown on all xml files.
Thanks, released the second patch with a few tweaks to HEAD. I also added a provisional icon and will ask the designers for a professional one. |