Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

AlexisTM
Copy link
Contributor

@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
@basvodde
Copy link
Member

basvodde commented Sep 9, 2024

Some test is still missing. I'll add it myself in another PR.

@basvodde basvodde merged commit a1d7bf2 into cpputest:master Sep 9, 2024
@AlexisTM AlexisTM deleted the fix/junit_newline_encoding branch September 10, 2024 08:09
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}
2 participants