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

Replace invalid characters with a placeholder #105

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

JohnFinn000
Copy link

@JohnFinn000 JohnFinn000 commented Feb 26, 2024

It seems that when tests print an emoji in the failure reason rspec_junit_formatter fails and prints the xml its already generated to that point which ends up being invalid because it creates an xml element with a missing closing brackets and that cannot be parsed by the tools that attempt to read it.

This fix causes invalid characters to be replaced with ??invalid?? instead of bailing out immediately. rspec_junit_formatter shouldn't output invalid xml regardless of the failures it encounters along the way.

This should fix this issue: #92

@hdost
Copy link

hdost commented May 29, 2024

This would be useful 👍🏼

@Unknown-Guy
Copy link

Tested this on our CI, fixed similar error with invalid XML.

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.

3 participants