-
Notifications
You must be signed in to change notification settings - Fork 340
Implement published test results built in and reduce console chattiness. #437
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
Changes from all commits
f617ea2
20802b7
260137f
f3e4964
9c4059d
a0692c1
8893664
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -90,6 +90,16 @@ namespace vcpkg | |
| } | ||
| return *this; | ||
| } | ||
| XmlSerializer& XmlSerializer::cdata(StringView sv) | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ras0219-msft I think this CDATA thing was a workaround for not having real XmlSerializer available at the time; should this go through data() instead now that you have proper escapes implemented?
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The spec actually says "as a CDATA block": https://xunit.net/docs/format-xml-v2 (for the <message> child of a <failure> node)
I don't think it should matter, but I didn't want to substantially change the current output.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. WOW! |
||
| { | ||
| emit_pending_indent(); | ||
| Checks::check_exit( | ||
| VCPKG_LINE_INFO, Strings::search(sv, "]]>") == sv.end(), "]]> is not supported in a CDATA block"); | ||
| buf.append("<![CDATA["); | ||
| buf.append(sv.begin(), sv.size()); | ||
| buf.append("]]>"); | ||
| return *this; | ||
| } | ||
| XmlSerializer& XmlSerializer::simple_tag(StringLiteral tag, StringView content) | ||
| { | ||
| return emit_pending_indent().open_tag(tag).text(content).close_tag(tag); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Long term, I think SpecSummary should be "freestanding" and not require the action plan that produced it to be held "alive" in order to be meaningful but that turned out to be more effort than I was willing to spend here. This at least goes somewhat in that direction.