-
Notifications
You must be signed in to change notification settings - Fork 686
Description
When using JUnit XML, we can generate XML results from tests that are able to produce output with nested tests. If we use Kotest/JUnit XML with Gradle, then we can disable the XML results from Gradle and keep only the results from JUnit XML. Unfortunately, Gradle generates its HTML reports with the results it has in-memory, which can't don't support nested tests, and it doesn't seem to be able to fetch results from a different XML. It has a TestReport
task that is able to generate HTML reports from binary results, supposedly, but not from XML results.
With this in mind, I believe it would be interesting to offer a listener, similar to what JUnit XML does, that would generate HTML reports based on XML results produced by JUnit XML. In this way, we could have custom HTML reports for Kotest that would support nested tests based on the XML generated by JUnit XML.