Skip to content

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