Bug 568012 - [JUnit] Error markers for JUnit-XML files
Summary: [JUnit] Error markers for JUnit-XML files
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.18   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-19 14:15 EDT by Stefan Winkler CLA
Modified: 2020-10-20 03:13 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Winkler CLA 2020-10-19 14:15:39 EDT
The use case is the following:

When building and testing a large product consisting of many plugin projects with Maven+Tycho Surefire, the test results are written to target/surefire-reports as .txt and .xml files. But I need to open every single .xml file in the JUnit view to see which ones have errors.

I would like to see JUnit-.xml files in the Project Explorer marked with error markers if they contain failed test cases.

My idea is to create a simple Builder which can be turned on and off in the context menu for a project. When invoked, that Builder would then scan all files of the JUnit-XML content type for failed tests and create error markers on the respective files.

I would be willing to contribute this as a change to the org.eclipse.jdt.junit plugin. 

What do you think? Would that contribution be welcome?
Comment 1 Noopur Gupta CLA 2020-10-20 03:13:29 EDT
Hi Stefan, would it be possible to provide it as a separate plug-in or provide the functionality as a MarketPlace entry first? Based on the usage and feedback, we can integrate it into JDT.