Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encode newlines for -ojunit as their XML equivalent instead of {newline} #1598

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

AlexisTM
Copy link

@AlexisTM AlexisTM commented May 23, 2022

When calling the tests with -ojunit (Junit output), \n are replaced by {newline} which causes the Github Checks output to be inlined.
This PR is replacing \n and \r by their encoded equivalent respectively 
 and 
.
Now, when Jenkins reports the tests to Github Checks, the tests failures are readable.

What is the reason we are not replacing \n by {newline}? Should this instead be a Jenkins Junit plugin update to support {newline} or a post process from the user in the Jenkins pipeline?

Closes #1594

@AlexisTM AlexisTM changed the title Encode newlines Encode newlines for -ojunit as their XML equivalent instead of {newline} May 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Junit replaces newlines by {newline}
1 participant