-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Junit XML: Fix invalid characters in generated report
When generating reports with invalid characters, Azure Pipelines will report an error and not parse the file. This applies to any character not in the allowed character range of XML 1.0 specification [1]. Fixed by removing all invalid characters before serialization. [1] https://www.w3.org/TR/REC-xml/#charsets
- Loading branch information
1 parent
ec4f2e1
commit 11379cd
Showing
16 changed files
with
42 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<Library LVVersion="13008000"> | ||
<Property Name="NI.Lib.Icon" Type="Bin">%Q#!!!!!!!)!"1!&!!!-!%!!!@````]!!!!"!!%!!!(]!!!*Q(C=\>7R=2MR%!81N=?"5X<A91M</W-,<'&<9+K1,7Q,<)%N<!NMA3X)DW?-RJ(JQ"I\%%Z,(@`BA#==ZB3RN;]28_,V7@P_W`:R`>HV*SU_WE@\N_XF[3:^^TX\+2YP)D7K6;G-RV3P)R`ZS%=_]J'XP/5N<XH,7V\SEJ?]Z#5P?=J4HP+5JTTFWS%0?=B$DD1G(R/.1==!IT.+D)`B':\B'2Z@9XC':XC':XBUC?%:HO%:HO&R7QT0]!T0]!S0I4<*<)?=:XA-(]X40-X40-VDSGC?"GC4N9(<)"D2,L;4ZGG?ZH%;T>-]T>-]T?.S.%`T.%`T.)^<NF8J4@-YZ$S'C?)JHO)JHO)R>"20]220]230[;*YCK=ASI2F=)1I.Z5/Z5PR&)^@54T&5TT&5TQO<5_INJ6Z;"[(H#>ZEC>ZEC>Z$"(*ETT*ETT*9^B)HO2*HO2*(F.&]C20]C2)GN4UE1:,.[:/+5A?0^NOS?UJ^3<*\9B9GT@7JISVW7*NIFC<)^:$D`5Q9TWE7)M@;V&D,6;M29DVR]6#R],%GC47T9_/=@>Z5V>V57>V5E>V5(OV?^T[FTP?\`?YX7ZRP6\D=LH%_8S/U_E5R_-R$I>$\0@\W/VW<[_"<Y[X&],0^^+,]T_J>`J@_B_]'_.T`$KO.@I"O[^NF!!!!!!</Property> | ||
<Property Name="NI.Lib.SourceVersion" Type="Int">318799872</Property> | ||
<Property Name="NI.Lib.Version" Type="Str">1.0.0.0</Property> | ||
<Property Name="NI.LV.All.SourceOnly" Type="Bool">true</Property> | ||
<Item Name="Support" Type="Folder"> | ||
<Property Name="NI.LibItem.Scope" Type="Int">2</Property> | ||
<Item Name="Get Invalid Chars.vi" Type="VI" URL="../Get Invalid Chars.vi"/> | ||
</Item> | ||
<Item Name="Normalize String - String with Invalid Character - Normalized String does not contain Invalid Character.vi" Type="VI" URL="../Normalize String - String with Invalid Character - Normalized String does not contain Invalid Character.vi"/> | ||
<Item Name="Test Case.Serialize - Invalid character in Classname - XML does not contain invalid character.vi" Type="VI" URL="../Test Case.Serialize - Invalid character in Classname - XML does not contain invalid character.vi"/> | ||
<Item Name="Test Case.Serialize - Invalid character in Message - XML does not contain invalid character.vi" Type="VI" URL="../Test Case.Serialize - Invalid character in Message - XML does not contain invalid character.vi"/> | ||
<Item Name="Test Case.Serialize - Invalid character in Name - XML does not contain invalid character.vi" Type="VI" URL="../Test Case.Serialize - Invalid character in Name - XML does not contain invalid character.vi"/> | ||
<Item Name="Test Case.Serialize - Invalid character in Stack Trace - XML does not contain invalid character.vi" Type="VI" URL="../Test Case.Serialize - Invalid character in Stack Trace - XML does not contain invalid character.vi"/> | ||
<Item Name="Test Case.Serialize - Invalid character in Type - XML does not contain invalid character.vi" Type="VI" URL="../Test Case.Serialize - Invalid character in Type - XML does not contain invalid character.vi"/> | ||
<Item Name="Test Suite.Serialize - Invalid character in Hostname - XML does not contain invalid character.vi" Type="VI" URL="../Test Suite.Serialize - Invalid character in Hostname - XML does not contain invalid character.vi"/> | ||
<Item Name="Test Suite.Serialize - Invalid character in Name - XML does not contain invalid character.vi" Type="VI" URL="../Test Suite.Serialize - Invalid character in Name - XML does not contain invalid character.vi"/> | ||
<Item Name="Test Suite.Serialize - Invalid character in Package - XML does not contain invalid character.vi" Type="VI" URL="../Test Suite.Serialize - Invalid character in Package - XML does not contain invalid character.vi"/> | ||
</Library> |
Binary file added
BIN
+13.9 KB
...- String with Invalid Character - Normalized String does not contain Invalid Character.vi
Binary file not shown.
Binary file added
BIN
+15.7 KB
...se.Serialize - Invalid character in Classname - XML does not contain invalid character.vi
Binary file not shown.
Binary file added
BIN
+16 KB
...Case.Serialize - Invalid character in Message - XML does not contain invalid character.vi
Binary file not shown.
Binary file added
BIN
+15.7 KB
...st Case.Serialize - Invalid character in Name - XML does not contain invalid character.vi
Binary file not shown.
Binary file added
BIN
+16 KB
....Serialize - Invalid character in Stack Trace - XML does not contain invalid character.vi
Binary file not shown.
Binary file added
BIN
+16 KB
...st Case.Serialize - Invalid character in Type - XML does not contain invalid character.vi
Binary file not shown.
Binary file added
BIN
+16 KB
...ite.Serialize - Invalid character in Hostname - XML does not contain invalid character.vi
Binary file not shown.
Binary file added
BIN
+16 KB
...t Suite.Serialize - Invalid character in Name - XML does not contain invalid character.vi
Binary file not shown.
Binary file added
BIN
+16 KB
...uite.Serialize - Invalid character in Package - XML does not contain invalid character.vi
Binary file not shown.