Junit5: Make XML report generator available to the public

Created on 17 Apr 2018  路  16Comments  路  Source: junit-team/junit5

Overview

We have written our own test runner and would like to use the JUnit Platform's XmlReportsWritingListener to generate test result output. However the implementation is currently not in the public API.

Background:

We have created our own test runner, it seems for the following reasons.

  • Setup of external dependencies
  • Provide own TestExecutionListener

With this we replace which I assume would otherwise be provided by the ConsoleTestExecutor, which is the only point in JUnit which accesses the XmlReportsWritingListener.

Deliverables

  • [x] Make XML report generation publicly available.
Platform reporting enhancement

Most helpful comment

+1 for junit-platform-reporting

All 16 comments

Tentatively slated for 5.3 for _team discussion_

Team Decision: Polish (e.g. rename) and publish it as part of junit-platform-launcher.

@cburgmer Is this issue still relevant to you?

As in "will be implemented and released eventually"? If so, feel free to close now. We are running our own version right now, but in the long run it might be nice to replace with upstream.

If so, feel free to close now.

Well, if we close this issue now, that means the task will no longer be in any backlog (which means it will not be done). 馃槈

On the other hand, if nobody in the community needs it urgently, the issue may potentially remain open but assigned to a later _milestone_.

Let's say, we can work with the solution we have now. I'll get out of your hair, so you can decide best what the priorities are for the next weeks :)

I would also like to make use of the XML Report generator

@r0e, can you tell us what your concrete use case is?

Using this XML report generator is common use case when integrating the JUnit Platform in "build tools". By now, I could use them in both projects listed below:

Same goes for the TreePrintingListener, to a lesser extend.

Team Decision: Polish (e.g. rename) and publish it as part of junit-platform-launcher.

Perhaps a dedicated junit-platform-reporter project is better place to collect commonly used report generating listeners? Would keep the junit-platform-launcher clear from those implementations.

Perhaps a dedicated junit-platform-reporter project is better place to collect commonly used report generating listeners?

Maybe, but we'd probably want to name it something like junit-platform-reporting or junit-platform-reports.

+1 for junit-platform-reporting

_in progress..._

@cburgmer the junit-platform-reporting module is (soon) avaiable in the 1.4.0-SNAPSHOT builds. It'd be great, if you find the now public XmlReportsWritingListener useful. Feedback is very appreciated.

Team Decision:

Add Legacy to differentiate from potential future XML format.

Closing this issue now that the "legacy" renaming and polishing have been pushed to master.

Was this page helpful?
0 / 5 - 0 ratings