adobe / adobe/mocka

Escape characters in test failures

Open
#96 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.