jenkinsci / jenkinsci/junit-plugin

Support multi-line failure/error messages

Open
#589 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
87
Forks
351
Avg merge
1d 19h
Merged PRs (30d)
2

Description

### What feature do you want to see added?

In my tests, I sometimes output multiline failure messages. This is useful, for example, when a test is comparing json output.
This doesn't appear to be supported, new lines are converted to spaces.
I am using JUnit and xUnit plugins, but I'm pretty sure this comes from this plugin.

Eg:
```xml



```
becomes:
![image](https://github.com/jenkinsci/junit-plugin/assets/5424257/480d6572-a26a-4a11-828b-fc9205e00712)

### Upstream changes

_No response_

### Are you interested in contributing this feature?

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by tracing how the Jenkins JUnit plugin reads and displays failure messages from the XML example, especially the JUnit and xUnit plugin paths mentioned in the report. Reproduce the example with multiline text and verify that the rendered failure preserves line breaks instead of converting them to spaces.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
testing-qa
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.