apache / apache/maven-surefire
[SUREFIRE-2219] Option to include stdOut/stdErr console logs into test report
- Dominant language
- Java
- Stars
- 461
- Forks
- 588
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 19
Description
**[Alexander Kriegisch](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=kriegaex)** opened **[SUREFIRE-2219](https://issues.apache.org/jira/browse/SUREFIRE-2219?redirect=false)** and commented
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.
---
**Affects:** 3.2.2
**Attachments:**
- [image-2023-12-02-11-16-11-109.png](https://issues.apache.org/jira/secure/attachment/13064918/image-2023-12-02-11-16-11-109.png) (_23.13 kB_)
**Remote Links:**
- [GitHub Pull Request #692
](https://github.com/apache/maven-surefire/pull/692)
Contributor guide
Research direction
Start by reviewing how the Surefire report XML is transformed into the HTML report, along with the existing GitHub pull request #692. Done means the HTML report displays each test case's stdOut/stdErr console logs in a readable monospaced style.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100