'Surefire report: can logging data (<system-out>) be added to the HTML report?

Surefire includes logging as separate -output.txt files, and as <system-out> tags in the XML files.

XML logs

However, after running the tests with mvn surefire-report:report the resulting HTML only contains details for failing tests (the assert message and stacktrace) but no console logs:

Report image

Is this possible somehow? Can the issue be the CDATA wrap around the text, and how to prevent this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source