-
Notifications
You must be signed in to change notification settings - Fork 15
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
Xsd format fixes misc features #20
Conversation
…attributes not in the xsd
@codito Hey, if you are around and want to take a look that would be great. Otherwise I will merge and try to get the issue creators to review a pre-release version. Either way, getting the xsd validation should be a clear improvement. I will also do some testing against at least the gitlab parser before I merge. |
@@ -282,9 +312,18 @@ internal void TestRunCompleteHandler(object sender, TestRunCompleteEventArgs e) | |||
Directory.CreateDirectory(loggerFileDirPath); | |||
} | |||
|
|||
var settings = new XmlWriterSettings() | |||
{ | |||
Encoding = new UTF8Encoding(this.FileEncodingOption == FileEncoding.UTF8 ? false : true), |
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.
this.FileEncodingOption == FileEncoding.UTF8
should work.
test/JUnit.Xml.TestLogger.AcceptanceTests/JUnitTestLoggerAcceptanceTests.cs
Outdated
Show resolved
Hide resolved
test/JUnit.Xml.TestLogger.AcceptanceTests/JUnitTestLoggerAcceptanceTests.cs
Show resolved
Hide resolved
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.
Looks good, thanks. Please consider adding a Changelog and changing default file save behavior to without BOM.
Addresses #12, #16, #17, #18.