Skip to content

Generate HTML reports from JUnit XML #2011

@caramelomartins

Description

@caramelomartins

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement ✨Suggestions for adding new features or improving existing ones.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions