Skip to content

Commit

Permalink
Merge pull request #62 from nowsprinting/fix/junit_report
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuniwak authored May 29, 2024
2 parents ba75a2d + 7d4f949 commit 3f8d196
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Runtime/Utilities/JUnitReporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ private static string CreateJUnitXmlReport(int exitCode, string logString, strin
private const string ErrorElement = @"
<error message=""{0}""
type=""""
>{1}</error>";
><![CDATA[{1}]]></error>";

private const string FailureElement = @"
<failure message=""{0}""
type=""""
>{1}</failure>";
><![CDATA[{1}]]></failure>";

// XML format from: https://github.com/jenkinsci/benchmark-plugin/blob/master/doc/JUnit%20format/JUnit.txt
}
Expand Down
4 changes: 2 additions & 2 deletions Tests/Runtime/Utilities/JUnitReporterTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public void Output_error_wroteJUnitXmlReportingFile()
>
<error message=""Error message!""
type=""""
>Stack trace!</error>
><![CDATA[Stack trace!]]></error>
</testcase>
</testsuite>
</testsuites>"));
Expand Down Expand Up @@ -123,7 +123,7 @@ public void Output_failure_wroteJUnitXmlReportingFile()
>
<failure message=""Failure message!""
type=""""
>Stack trace!!</failure>
><![CDATA[Stack trace!!]]></failure>
</testcase>
</testsuite>
</testsuites>"));
Expand Down

0 comments on commit 3f8d196

Please sign in to comment.