Skip to content

Commit

Permalink
fix: standardize the start and end time formats in nunit report. (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
codito authored Jun 27, 2024
1 parent 73e23a0 commit 6faaacd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/NUnit.Xml.TestLogger/NUnitXmlSerializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace Microsoft.VisualStudio.TestPlatform.Extension.NUnit.Xml.TestLogger

public class NUnitXmlSerializer : ITestResultSerializer
{
private const string DateFormat = "yyyy-MM-ddT HH:mm:ssZ";
private const string DateFormat = "yyyy-MM-ddTHH:mm:ssZ";
private const string ResultStatusPassed = "Passed";
private const string ResultStatusFailed = "Failed";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public void TestResultFileTestCasesShouldContainValidStartAndEndTimes(string tes
Assert.IsNotNull(startTimeStr);
Assert.IsNotNull(endTimeStr);

string dateFormat = "yyyy-MM-ddT HH:mm:ssZ";
string dateFormat = "yyyy-MM-ddTHH:mm:ssZ";
var startTime = DateTime.ParseExact(startTimeStr, dateFormat, CultureInfo.InvariantCulture);
var endTime = DateTime.ParseExact(endTimeStr, dateFormat, CultureInfo.InvariantCulture);

Expand Down

0 comments on commit 6faaacd

Please sign in to comment.