Skip to content

Commit 95c83d7

Browse files
committed
guid as new field
1 parent dfe6d44 commit 95c83d7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Ghpr.Core/Reporter.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ public class Reporter
1414
{
1515
private IRun _currentRun;
1616
private List<ITestRun> _currentRunningTests;
17+
private Guid _currentRunGuid;
1718

1819
private static readonly ResourceExtractor Extractor = new ResourceExtractor(OutputPath);
1920

@@ -30,7 +31,8 @@ private void SetUp()
3031
{
3132
ActionHelper.SafeAction(() =>
3233
{
33-
_currentRun = new Run(Guid.NewGuid())
34+
_currentRunGuid = Guid.NewGuid();
35+
_currentRun = new Run(_currentRunGuid)
3436
{
3537
TestRunFiles = new List<string>(),
3638
RunSummary = new RunSummary()
@@ -98,7 +100,7 @@ public void TestFinished(ITestRun testRun)
98100
UpdateCurrentRunSummary(finalTest);
99101

100102
finalTest.TestInfo.FileName = fileName;
101-
finalTest.RunGuid = _currentRun.RunInfo.Guid;
103+
finalTest.RunGuid = _currentRunGuid;
102104
finalTest.TestInfo.Start = finalTest.TestInfo.Start.Equals(default(DateTime)) ? finishDateTime : finalTest.TestInfo.Start;
103105
finalTest.TestInfo.Finish = finalTest.TestInfo.Finish.Equals(default(DateTime)) ? finishDateTime : finalTest.TestInfo.Finish;
104106
finalTest

0 commit comments

Comments
 (0)