private void mergeReport(TestRunResults[] results, RunReport report, TestRunInfo[] runInfos) { var modifiedResults = new List<TestRunResults>(); foreach (var result in results) { var modified = _removedTestLocator.SetRemovedTestsAsPassed(result, runInfos); report.AddTestRun( modified.Project, modified.Assembly, modified.TimeSpent, modified.Passed.Length, modified.Ignored.Length, modified.Failed.Length); _bus.Publish(new TestRunMessage(modified)); modifiedResults.Add(modified); } informPreProcessor(modifiedResults.ToArray()); }
private void runTests(ITestRunner testRunner, TestRunInfo[] runInfos, Action <AutoTest.TestRunners.Shared.Targeting.Platform, Action <System.Diagnostics.ProcessStartInfo> > processWrapper, RunReport runReport) { var results = runTests(testRunner, runInfos, processWrapper); var modifiedResults = new List <TestRunResults>(); foreach (var result in results) { runReport.AddTestRun( result.Project, result.Assembly, result.TimeSpent, result.Passed.Length, result.Ignored.Length, result.Failed.Length); var modified = _removedTestLocator.SetRemovedTestsAsPassed(result, runInfos); _bus.Publish(new TestRunMessage(modified)); modifiedResults.Add(modified); } informPreProcessor(modifiedResults.ToArray()); }