-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Dynamic testcase name in xml report is not the same as display-name #4312
Comments
That's by design. For compatibility with existing tools the legacy XML format outputs the legacy reporting name. Please give the new Open Test Reporting XML format a try to get support for display names, report entries, hierarchical test structures, etc. |
Please assign a status label to this issue. |
I added
|
@marcphilipp |
You mean your build server or other tooling will need time to support the new format or what did you have in mind?
No, that's not configurable/changeable. |
We have a web service which shows test results in a nice way from any test report, junit, xunit, cucumber. |
Hello,
I'm using
DynamicTest
with@TestFactory
all works as expected except xml report generated during execution with console launcher.The test name set during execution is not propagated to
name
attribute oftestcase
node in xml report.as you can see display-name is correct in CDATA, but attribute is not updated with display name
name="dynamicTests()[17]"
expected
I was trying to use
TestReporter.publishEntry
Stream<DynamicTest> dynamicTests(TestReporter testReporter)
It didn't work out either.
Context
junit-platform-console-standalone-1.11.4.jar
The text was updated successfully, but these errors were encountered: