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

XML method name formatting #97

Open
mestar99 opened this issue Apr 11, 2018 · 0 comments
Open

XML method name formatting #97

mestar99 opened this issue Apr 11, 2018 · 0 comments

Comments

@mestar99
Copy link

mestar99 commented Apr 11, 2018

If an XML file contains methods with less-than, greater-than, and ampersand symbols in the name, then the HTML report generated is displaying < , > , & for the method name instead of the actual symbol. This seems to be due to the xmlTransform function being executed on the method name which converts the & at the start of the entity into & which makes the rest of the entity invalid. If you click down to the "Method Coverage summary" then it ends up displaying correctly because that doesn't run the xmlTransform function.

It seems like the XMLHandler should normalize the element's attribute to convert the entities into the regular characters and then have an htmlTransform to convert the characters back into HTML entities later.

You can see this by loading the the test coverage.xml file in the test resources directory and seeing the <init> method.

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

No branches or pull requests

1 participant