jenkinsci / jenkinsci/junit-plugin

Removing Stacktrace Trim

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

Description

### Jenkins and plugins versions report

Jenkins 2.332.1
junit plugin - 1119.va_a_5e9068da_d7

### What Operating System are you using (both controller, and any agents involved in the problem)?

Ubuntu 20.* (Docker)

### Reproduction steps

In a declarative pipeline:
`junit testResults: '**/findings.xml'`

For the giving `findings.xml`:
```





```
[](url)

### Expected Results

No `trim` in the Stacktrace, like:
```
Error
Missing space after the colon

Stacktrace
755 | METHOD GET_PRICING_APP_TEXT_SINGLE.
756 | DATA:lt_dd07v TYPE TABLE OF dd07v.
| ^
757 | DATA:lv_langu TYPE sy-langu.
```

### Actual Results

GitHub Pull Request - Checks:
![image](https://user-images.githubusercontent.com/5233413/174358701-ea602dc0-4285-45e9-916e-7600aa55f402.png)

JaaS - Blue Ocean (Tests):
![image](https://user-images.githubusercontent.com/5233413/174358217-84a71636-1d18-4447-9823-4fd5a951b8a4.png)

JaaS - Classical (JUnit Test Result) [OK already]:
![image](https://user-images.githubusercontent.com/5233413/174359582-1b1b2d92-ee71-4601-aa76-641ce0d873b3.png)

### Anything else?

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the declarative pipeline case with the supplied findings.xml and inspect the JUnit result and stacktrace rendering entry points. Trace where the failure text is trimmed in the GitHub Checks and Blue Ocean presentations; done means the stacktrace retains the shown source lines without the trim while the classical JUnit result remains unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
testing-qa
Issue type
Bug
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.