Escape characters in test failures
Open
bug
- Dominant language
- JavaScript
- Stars
- 27
- Forks
- 7
- PR merge metrics
- No merged PRs in 30d
Description
Unit tests results.xml are incorrectly generated. Escape special characters for junit report
Sample:
```
/usr/local/share/lua/5.1/mocka.lua:600: assertEquals failed: expected [allowed], was [{"error_code":"403013","message":"Your IP is not whitelisted"}
]
```
Contributor guide
Research direction
Locate the code that generates results.xml and inspect how failure messages from the sample are written into the JUnit report. Verify the expected escaping for special characters and confirm that the resulting XML is valid while preserving the failure message content.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100