Skip to content

Commit d8bc445

Browse files
authoredMay 11, 2020
More verbose info in datacollector log (#2430)
1 parent bcad654 commit d8bc445

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed
 

‎src/Microsoft.TestPlatform.CommunicationUtilities/DataCollectionTestCaseEventHandler.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public void ProcessRequests()
8484

8585
if (EqtTrace.IsInfoEnabled)
8686
{
87-
EqtTrace.Info("DataCollectionTestCaseEventHandler: Test case started.");
87+
EqtTrace.Info("DataCollectionTestCaseEventHandler: Test case '{0} - {1}' started.", testCaseStartEventArgs.TestCaseName, testCaseStartEventArgs.TestCaseId);
8888
}
8989

9090
break;
@@ -101,7 +101,7 @@ public void ProcessRequests()
101101

102102
if (EqtTrace.IsInfoEnabled)
103103
{
104-
EqtTrace.Info("DataCollectionTestCaseEventHandler: Test case completed");
104+
EqtTrace.Info("DataCollectionTestCaseEventHandler: Test case '{0} - {1}' completed", testCaseEndEventArgs.TestCaseName, testCaseEndEventArgs.TestCaseId);
105105
}
106106

107107
break;
@@ -121,7 +121,7 @@ public void ProcessRequests()
121121
default:
122122
if (EqtTrace.IsInfoEnabled)
123123
{
124-
EqtTrace.Info("DataCollectionTestCaseEventHandler: Invalid Message types");
124+
EqtTrace.Info("DataCollectionTestCaseEventHandler: Invalid Message type '{0}'", message.MessageType);
125125
}
126126

127127
break;

‎src/Microsoft.TestPlatform.CrossPlatEngine/Execution/TestRunCache.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ public bool OnTestCompletion(TestCase completedTest)
259259

260260
if (this.inProgressTests == null || this.inProgressTests.Count == 0)
261261
{
262-
EqtTrace.Warning("InProgressTests is null");
262+
EqtTrace.Warning("TestRunCache: InProgressTests is null");
263263
return false;
264264
}
265265

@@ -394,7 +394,7 @@ private void RemoveInProgress(TestResult result)
394394
var removed = this.OnTestCompletion(result.TestCase);
395395
if (!removed)
396396
{
397-
EqtTrace.Warning("TestRunCache: No test found corresponding to testResult '{0}' in inProgress list.", result);
397+
EqtTrace.Warning("TestRunCache: No test found corresponding to testResult '{0}' in inProgress list.", result.DisplayName);
398398
}
399399
}
400400

0 commit comments

Comments
 (0)
Please sign in to comment.