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

Remove dependency on libxml from spec runner #6004

Merged

Conversation

straight-shoota
Copy link
Member

@straight-shoota straight-shoota commented Apr 25, 2018

This PR reverts the implementation of #4090 but modifies the plain string formatter to produce the same, indented output as XML::Builder. This avoids having all specs depend on libxml while still enabling JUnit formatter.

Closes #5662

This re-applies the formatting of XML::Builder from 5957f02 without the
dependency on libxml.
end
io << %(">)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If there is no message there is no " to add

end
# -------- private utility methods
private def write_report(result, io)
io << %( <testcase file=") << result.file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Escape this

# -------- private utility methods
private def write_report(result, io)
io << %( <testcase file=") << result.file
io << %(" classname=") << classname(result) << %(" name=")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

@RX14 RX14 added this to the Next milestone Apr 26, 2018
@RX14 RX14 merged commit fdda990 into crystal-lang:master Apr 26, 2018
@straight-shoota straight-shoota deleted the jm/feature/spec-remove-libxml-dep branch April 26, 2018 12:17
chris-huxtable pushed a commit to chris-huxtable/crystal that referenced this pull request Jun 6, 2018
* Revert "Change spec junit formatter to use XML::Builder"

This reverts commit 5957f02.

* Improve output of JUnit formatter and simplify implementation

This re-applies the formatting of XML::Builder from 5957f02 without the
dependency on libxml.

* fixup! Improve output of JUnit formatter and simplify implementation

* fixup! Improve output of JUnit formatter and simplify implementation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants