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 in unit tests breaks the outputed xml #1

Closed
mattkanwisher opened this issue Jun 16, 2009 · 1 comment
Closed

Xml in unit tests breaks the outputed xml #1

mattkanwisher opened this issue Jun 16, 2009 · 1 comment

Comments

@mattkanwisher
Copy link

If you have unit tests that generate xml more specifically if they have CDATA sections, it breaks the outputed junit xml so you can't use it in another tool like hudson. The easiest solution for me was to just xml escape the output, maybe have an option for this?

The fix is in test_suite.rb
change
builder.cdata! self.stdout
to
builder.cdata! self.stdout.to_xs

and
builder.cdata! self.stderr
to
builder.cdata! self.stderr.to_xs

@nicksieger
Copy link
Member

Thanks, fixed in a5d3b65

This issue was closed.
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

2 participants