Skip to content

Conversation

@laeubi
Copy link
Contributor

@laeubi laeubi commented Oct 27, 2025

This is an adoption of a new feature in the open-test-reporting library here:

This is now an adaption for junit reporter so when socket property is set, connect to localhost:<port> and write XML to socket.

This allows e.g. to have an IDE connector or other tool that observe and visualize the test run in an external JUnit run. eg through the CLI.


I hereby agree to the terms of the JUnit Contributor License Agreement.


I have generated the content using copilot here, squashed the commits reviewed it and found it looks fine.

Definition of Done

@laeubi
Copy link
Contributor Author

laeubi commented Oct 27, 2025

@marcphilipp thanks for your review and suggestions, I applied them now and tried to adapt the test as you proposed!

Copilot AI and others added 13 commits October 27, 2025 19:58
- Add SOCKET_PROPERTY_NAME constant for
junit.platform.reporting.open.xml.socket
- Implement createDocumentWriter method to support both file and socket
outputs
- When socket property is set, connect to localhost:<port> and write XML
to socket
- Add comprehensive test for socket-based reporting
- Update documentation to describe socket configuration parameter
- Update release notes with new feature

Co-authored-by: laeubi <[email protected]>
…/xml/OpenTestReportGeneratingListenerTests.java

Co-authored-by: Marc Philipp <[email protected]>
…/xml/OpenTestReportGeneratingListenerTests.java

Co-authored-by: Marc Philipp <[email protected]>
…/xml/OpenTestReportGeneratingListenerTests.java

Co-authored-by: Marc Philipp <[email protected]>
…/xml/OpenTestReportGeneratingListenerTests.java

Co-authored-by: Marc Philipp <[email protected]>
@laeubi laeubi force-pushed the add-socket-redirect-option branch from 7586df6 to d45ade2 Compare October 27, 2025 18:58
@laeubi laeubi requested a review from marcphilipp October 27, 2025 18:58
laeubi and others added 4 commits October 28, 2025 11:19
…it-platform-reporting.adoc

Co-authored-by: Marc Philipp <[email protected]>
…rting/open/xml/OpenTestReportGeneratingListener.java

Co-authored-by: Marc Philipp <[email protected]>
…/xml/OpenTestReportGeneratingListenerTests.java

Co-authored-by: Marc Philipp <[email protected]>
@marcphilipp marcphilipp added this to the 6.1.0-M1 milestone Oct 28, 2025
@marcphilipp marcphilipp merged commit 1e8e78f into junit-team:main Oct 28, 2025
16 checks passed
@marcphilipp
Copy link
Member

Thanks, @laeubi! 👍

@laeubi
Copy link
Contributor Author

laeubi commented Oct 28, 2025

Thanks, @laeubi! 👍

Thanks for the review an merge! as this and the OSGi thing is quite interesting for me may I ask if any 6.0.1 release is planned for JUnit or will 6.1.0 be the next (whenever it will happen).

@marcphilipp
Copy link
Member

We will release 6.0.1 toward the end of the week but this change will not be included since it's not a bug fix but a new feature. We will probably release 6.1.0-M1 in the coming weeks, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants