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

Change Spec::JUnitFormatter to use XML::Builder #4090

Merged
merged 2 commits into from Mar 3, 2017

Conversation

RX14
Copy link
Contributor

@RX14 RX14 commented Feb 28, 2017

This means that the generated XML will be properly indented, and always valid. It's also neater.

I've also included a commit which edits the Makefile to allow make spec junit_output=path/to/dir to pass --junit_output to the built spec binary.

These changes are required for displaying spec results on jenkins, along with removing some characters which cannot be represented in XML from the spec names: https://github.com/crystal-lang/crystal/blob/master/spec/std/uri_spec.cr#L199.

@asterite
Copy link
Member

asterite commented Mar 3, 2017

@RX14 Nice, thank you!

Just one question before merging this: you say " along with removing some characters which cannot be represented in XML from the spec names"... but I can't seem to find that change in the diff. Where is it? (or is this accomplished just by using XML.build?)

@RX14
Copy link
Contributor Author

RX14 commented Mar 3, 2017

@asterite its just confusing wording.

These changes [in this pr] are required for displaying spec results on jenkins, along with removing some characters which cannot be represented in XML from the spec names [which is not in this PR]

I thought it was best to seperate the changes into 2 prs, as they have different scopes. Also I wanted to get this merged, and #4089 fixed before working on sanitizing spec names.

@asterite
Copy link
Member

asterite commented Mar 3, 2017

Oh, I see! Then can I merge this? :-)

@RX14
Copy link
Contributor Author

RX14 commented Mar 3, 2017

Yes, this pr is complete.

@asterite asterite added this to the Next milestone Mar 3, 2017
@asterite asterite merged commit 8387828 into crystal-lang:master Mar 3, 2017
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

2 participants