Skip to content

Wrap skipped and failure messages in CDATA #702

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

Merged
merged 1 commit into from
Apr 24, 2025

Conversation

ali-wallick
Copy link
Contributor

@ali-wallick ali-wallick commented Apr 17, 2025

Ran into an issue with parsing the XML of the exported test results when the error message has null in it as in Godot str(null) is <null>:

<failure message="failed">params[10] Expected [<null>] to be anything but NULL:  [message]
            at line -1</failure>

I was able to solve the issue locally with this change, but not sure if there's another route you'd prefer (eg escaping certain characters).

@bitwes bitwes changed the base branch from main to pr_702_tests April 24, 2025 17:09
@bitwes
Copy link
Owner

bitwes commented Apr 24, 2025

This looks good. Thank you.

I wanted to add some tests to replicate the issue and validate the fix. I tested your code with the tests and everything passed.

In order to combine my tests and your code I changed the branch this PR is attempting to merge into. I've never done that before, but it seemed like a faster way to get all the code in one place and to make sure you are credited.

@bitwes bitwes merged commit 1b2f0eb into bitwes:pr_702_tests Apr 24, 2025
@ali-wallick
Copy link
Contributor Author

That's great, thank you!

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.

2 participants