mikepenz/action-junit-report

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

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!

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):

image

Sample XML:

TEST-net.mcreator.integration.generator.GeneratorsTest.zip

Thank you for the update. Given that the xml output already does not include this information. I believe we can close this issue.