-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Add socket support to OpenTestReportGeneratingListener #5096
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add socket support to OpenTestReportGeneratingListener #5096
Conversation
...c/test/java/org/junit/platform/reporting/open/xml/OpenTestReportGeneratingListenerTests.java
Outdated
Show resolved
Hide resolved
...c/test/java/org/junit/platform/reporting/open/xml/OpenTestReportGeneratingListenerTests.java
Outdated
Show resolved
Hide resolved
...c/test/java/org/junit/platform/reporting/open/xml/OpenTestReportGeneratingListenerTests.java
Outdated
Show resolved
Hide resolved
...c/test/java/org/junit/platform/reporting/open/xml/OpenTestReportGeneratingListenerTests.java
Outdated
Show resolved
Hide resolved
...c/test/java/org/junit/platform/reporting/open/xml/OpenTestReportGeneratingListenerTests.java
Outdated
Show resolved
Hide resolved
...ng/src/main/java/org/junit/platform/reporting/open/xml/OpenTestReportGeneratingListener.java
Outdated
Show resolved
Hide resolved
...ng/src/main/java/org/junit/platform/reporting/open/xml/OpenTestReportGeneratingListener.java
Outdated
Show resolved
Hide resolved
...ng/src/main/java/org/junit/platform/reporting/open/xml/OpenTestReportGeneratingListener.java
Outdated
Show resolved
Hide resolved
|
@marcphilipp thanks for your review and suggestions, I applied them now and tried to adapt the test as you proposed! |
- 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 <1331477+laeubi@users.noreply.github.com>
Co-authored-by: Marc Philipp <mail@marcphilipp.de>
Co-authored-by: Marc Philipp <mail@marcphilipp.de>
Co-authored-by: Marc Philipp <mail@marcphilipp.de>
…/xml/OpenTestReportGeneratingListenerTests.java Co-authored-by: Marc Philipp <mail@marcphilipp.de>
…/xml/OpenTestReportGeneratingListenerTests.java Co-authored-by: Marc Philipp <mail@marcphilipp.de>
…/xml/OpenTestReportGeneratingListenerTests.java Co-authored-by: Marc Philipp <mail@marcphilipp.de>
…/xml/OpenTestReportGeneratingListenerTests.java Co-authored-by: Marc Philipp <mail@marcphilipp.de>
7586df6 to
d45ade2
Compare
documentation/src/docs/asciidoc/release-notes/release-notes-6.1.0-M1.adoc
Outdated
Show resolved
Hide resolved
documentation/src/docs/asciidoc/user-guide/advanced-topics/junit-platform-reporting.adoc
Outdated
Show resolved
Hide resolved
...ng/src/main/java/org/junit/platform/reporting/open/xml/OpenTestReportGeneratingListener.java
Outdated
Show resolved
Hide resolved
...c/test/java/org/junit/platform/reporting/open/xml/OpenTestReportGeneratingListenerTests.java
Show resolved
Hide resolved
...c/test/java/org/junit/platform/reporting/open/xml/OpenTestReportGeneratingListenerTests.java
Outdated
Show resolved
Hide resolved
…1.0-M1.adoc Co-authored-by: Marc Philipp <mail@marcphilipp.de>
…it-platform-reporting.adoc Co-authored-by: Marc Philipp <mail@marcphilipp.de>
…rting/open/xml/OpenTestReportGeneratingListener.java Co-authored-by: Marc Philipp <mail@marcphilipp.de>
…/xml/OpenTestReportGeneratingListenerTests.java Co-authored-by: Marc Philipp <mail@marcphilipp.de>
|
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). |
|
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. |
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
@APIannotations