Skip to content
This repository has been archived by the owner on May 19, 2023. It is now read-only.

Commit

Permalink
Fixed generated TRX file not opening in Visual Studio.
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienTheron committed Jan 10, 2019
1 parent f3795f4 commit d1c726f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ void ITestListener.RecordResult(TestResultViewModel result)
var className = result.TestCase.TestCase.TestMethod.TestClass.Class.Name;
resultNode.SetAttribute("testName", testName);
resultNode.SetAttribute("testId", id);
resultNode.SetAttribute("duration", result.Duration.ToString("G", CultureInfo.InvariantCulture));
resultNode.SetAttribute("duration", result.Duration.ToString("c", CultureInfo.InvariantCulture));
resultNode.SetAttribute("computerName", "");

if (result.TestCase.Result == TestState.Failed)
Expand Down

0 comments on commit d1c726f

Please sign in to comment.