You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use the nunit spekt logger to generate a report on my unit tests. In order to read this report, I use the XmlSerilizer's deserialization capabilities in C#. Unfortunately, the date format in which the logger saves date is not standard (not follows ISO8601). The date is separated by an additional space, which makes it impossible to read the date through the XmlSerilizer (due to XML format) and forces you to write additional logic in the code for the correct parsing of the Datetime XML attribute. Is there any way to fix this, or at least find out the reason why it was decided to write the date in a non-standard format like in the line below:
If I manually change start-time value from 2024-04-21T 19:37:28Z, which is written by logger, to 2024-04-21T19:37:28Z, then I will have no error with start-time, but I will have an error with end-time
System.FormatException
The string '2024-04-17T 19:37:36Z' is not a valid AllXsd value.
The text was updated successfully, but these errors were encountered:
I use the nunit spekt logger to generate a report on my unit tests. In order to read this report, I use the
XmlSerilizer
's deserialization capabilities in C#. Unfortunately, the date format in which the logger saves date is not standard (not follows ISO8601). The date is separated by an additional space, which makes it impossible to read the date through theXmlSerilizer
(due to XML format) and forces you to write additional logic in the code for the correct parsing of theDatetime
XML attribute. Is there any way to fix this, or at least find out the reason why it was decided to write the date in a non-standard format like in the line below:nunit.testlogger/src/NUnit.Xml.TestLogger/NUnitXmlSerializer.cs
Line 19 in 1856e1f
Let me show an example:
If I manually change
start-time
value from2024-04-21T 19:37:28Z
, which is written by logger, to2024-04-21T19:37:28Z
, then I will have no error withstart-time
, but I will have an error withend-time
The text was updated successfully, but these errors were encountered: