Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Xml in unit tests breaks the outputed xml #1

Closed
mattkanwisher opened this Issue · 1 comment

2 participants

@mattkanwisher

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
Owner

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
Something went wrong with that request. Please try again.