From 24370882fd567d068cb3ee7fc0fa814c96a5ce60 Mon Sep 17 00:00:00 2001 From: Khilan Goel Date: Thu, 12 Oct 2017 22:00:46 +0530 Subject: [PATCH] Telemetry with Parallel and DataCollector Enabled (#1195) Telemetry was not coming for testhost when DataCollectors with parallel enabled was there --- .../DataCollection/ParallelDataCollectionEventsHandler.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Microsoft.TestPlatform.CrossPlatEngine/DataCollection/ParallelDataCollectionEventsHandler.cs b/src/Microsoft.TestPlatform.CrossPlatEngine/DataCollection/ParallelDataCollectionEventsHandler.cs index edbe8469c4..3a1ea1dd38 100644 --- a/src/Microsoft.TestPlatform.CrossPlatEngine/DataCollection/ParallelDataCollectionEventsHandler.cs +++ b/src/Microsoft.TestPlatform.CrossPlatEngine/DataCollection/ParallelDataCollectionEventsHandler.cs @@ -82,6 +82,9 @@ public override void HandleTestRunComplete( this.runDataAggregator.RunContextAttachments, this.runDataAggregator.ElapsedTime); + // Add Metrics from Test Host + completedArgs.Metrics = this.runDataAggregator.GetAggregatedRunDataMetrics(); + HandleParallelTestRunComplete(completedArgs); } }