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

Escape characters in test failures #96

Open
atrifan opened this issue Mar 26, 2019 · 0 comments
Open

Escape characters in test failures #96

atrifan opened this issue Mar 26, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@atrifan
Copy link
Collaborator

atrifan commented Mar 26, 2019

Unit tests results.xml are incorrectly generated. Escape special characters for junit report

Sample:

<testcase name="Whitelist - IP in X-Forwarded-For which is whitelisted is not blocked after reload" assertions="3" classname="api-gateway.tests.commons.ipFilterTest" status="" time="0.02">
<failure message="assertEquals failed: expected [allowed], was [{"error_code":"403013","message":"Your IP is not whitelisted"}
]" type="failure">/usr/local/share/lua/5.1/mocka.lua:600: assertEquals failed: expected [allowed], was [{"error_code":"403013","message":"Your IP is not whitelisted"}
]</failure>
</testcase>
@atrifan atrifan added the bug Something isn't working label Mar 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant