public Boolean Load(ITestResultSource source) { _log.Debug(nameof(Load)); if (source == null) { return(false); } try { _reportRoot = new Root(source.GetKeyedResults()); return(true); } catch (Exception ex) { _log.Error("Failed to load results.", ex); } return(false); }
public Boolean Load(ITestResultSource source) { _log.Debug(nameof(Load)); if (source == null) { return(false); } try { _countWorkers = source.GetKeys().Select(key => (key.AssemblyName, key.TargetRuntime, key.TargetArchitecture, key.ExecutionRuntime, key.ExecutionArchitecture)).Distinct().Count(); _countAssemblies = source.GetKeys().Select(key => (key.AssemblyName, key.TargetRuntime, key.TargetArchitecture)).Distinct().Count(); _countMethods = source.GetKeys().Select(key => (key.AssemblyName, key.FileName, key.MethodName)).Distinct().Count(); _countClasses = source.GetKeys().Select(key => (key.AssemblyName, key.FileName)).Distinct().Count(); _reportRoot = new RootNode(_verbosity, source.GetKeyedResults()); return(true); } catch (Exception ex) { _log.Error("Failed to load results.", ex); } return(false); }