| Summary: | [JUnit][API] Expose JUnitModel.exportTestRunSession(...) as API | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Mirko Raner <mirko> | ||||
| Component: | UI | Assignee: | Markus Keller <markus.kell.r> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | enhancement | ||||||
| Priority: | P3 | CC: | daniel_megert, markus.kell.r, Olivier_Thomann | ||||
| Version: | 3.6 | Keywords: | api | ||||
| Target Milestone: | 3.7 M1 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Mirko Raner
Move to JDT/UI Created attachment 171604 [details]
Patch to expose API for importing/exporting JUnit test results
This is roughly what I had in mind. I also added the corresponding import methods to provide support for both directions of data exchange.
The only thing I'm not 100% happy with are the casts to TestRunListener in the export methods. However, given that ITestRunListener is not allowed to be implemented by client code and TestRunListener is the framework's only implementation class I assume that this will not pose any problems.
I understand that this contribution comes way too late for Helios, but hopefully it can be incorporated for Helios SR1 or Indigo.
Thanks, that looks good to me. Committed to HEAD with one change in JUnitCore#importTestRunSession(String, IProgressMonitor): If the import got cancelled, we now return null instead of throwing a CoreException. Thanks for committing that :-) Are these sort of non-breaking API enhancements usually also added to service releases of the current product version (i.e., Helios SR1)? > Are these sort of non-breaking API enhancements usually also added to service
> releases of the current product version (i.e., Helios SR1)?
Sorry, forgot to answer that. No, we don't add APIs in service releases (unless all hell breaks loose and the PMC allows an exception, but this bug is not severe enough for that).
|