JUnit task reporting only goes 2 levels deep
KlemenDEV opened this issue · 8 comments
If JUnit tests are nested more than 2 levels (e.g. https://www.baeldung.com/junit-5-nested-test-classes), only first and last test names are printed, excluding all level names in between on the summary page. This makes it hard to read summary page in those cases as important information is lost
Example of such report: https://github.com/MCreator/MCreator/actions/runs/8957007479
Example of >2 deep nesting: https://github.com/MCreator/MCreator/actions/runs/8957007479/job/24599538540#step:5:1303
Sorry for the late response. can you please attach an example XML which can be used for testing / investigation?
Not sure if the latest changes enable what you need. However the latest main
branch includes updates to the check_title_template
adding a new BREAD_CRUMB
template, you can use to construct a title which should have the full path.
Ok, I will test it when I get time to look into it. Thanks!
https://github.com/MCreator/MCreator/actions/runs/9616678764
Does not seem to fix.
In our case it seems {{BREAD_CRUMB}}
is empty based on linked report
Can you please provide the junit XML output you pass on to the action. This should allow me to have a much closer look at what's the case in this situation
Aha, I see, the problem is on Gradle level because it is not even including information about this in the XML. No need to attach XML as this is not actually a problem of this action.
Probably this: gradle/gradle#17384
IDEA seems to handle this OK, though (line marked with green arrow is not included in Gradle XML test report):
Sample XML:
Thank you for the update. Given that the xml output already does not include this information. I believe we can close this issue.