[ 
https://issues.apache.org/jira/browse/SUREFIRE-2219?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17793472#comment-17793472
 ] 

ASF GitHub Bot commented on SUREFIRE-2219:
------------------------------------------

kriegaex commented on PR #692:
URL: https://github.com/apache/maven-surefire/pull/692#issuecomment-1841925697

   > I also need to put other PRs into consider because of memory consumption, 
etc.
   
   Are we talking about memory consumption here or in the other PRs? What are 
you concerned about? The XML parser uses 
(SAX)[https://en.wikipedia.org/wiki/Simple_API_for_XML], not a DOM. Of course, 
the console log contents need to be stored in `ReportTestCase` properties 
subsequently, which necessarily uses more memory than the non-existence of such 
properties. If you are very concerned about this, you could make populating 
these fields optional. But then,
   
     * either users need to set two properties in two different plugins to 
activate console log reporting for tests,
     * or you need to always report console log entries, if they exist, 
assuming that if the user activated populating the fields she also wants to 
include them in the report, which is a reasonable assumption.




> Option to include stdOut/stdErr console logs into test report
> -------------------------------------------------------------
>
>                 Key: SUREFIRE-2219
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-2219
>             Project: Maven Surefire
>          Issue Type: New Feature
>          Components: Maven Surefire Report Plugin
>    Affects Versions: 3.2.2
>            Reporter: Alexander Kriegisch
>            Priority: Major
>         Attachments: image-2023-12-02-11-16-11-109.png
>
>
> Surefire report XML includes tags capturing console logs, e.g. 
> {{testsuite/testcase/system-err}}:
>  !image-2023-12-02-11-16-11-109.png! 
> As a report reader, I want to see the stdOut/stdErr console logs per test 
> case in the HTML report, ideally in a monotype font to easily be able to read 
> stack traces.
> This requirement has been discussed online a lot, e.g. on Stack Overflow or 
> Reddit. I wonder why such a feature is missing. The HTML report basically 
> being an XML transformation from the surefire report, it should not be super 
> complicated to implement.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to