private static ManualCompetitionConfig Create( [NotNull] Assembly targetAssembly) { var createOptions = AppConfigHelpers.GetAppConfigOptions( targetAssembly, typeof(AssemblyWideConfig).Assembly); #if CI_Build createOptions.PreviousRunLogUri = null; #else if (createOptions.PreviousRunLogUri.IsNullOrEmpty()) { var assemblyName = targetAssembly.GetName().Name; createOptions.PreviousRunLogUri = $@"https://ci.appveyor.com/api/projects/andrewvk/codejam/artifacts/{assemblyName}{AppConfigHelpers.ImportantOnlyLogSuffix}?all=true"; } #endif createOptions.Loggers |= AppConfigLoggers.ImportantOnly; if (createOptions.TargetPlatform == Platform.Host) { createOptions.TargetPlatform = Platform.X64; } return(AppConfigHelpers.CreateAppCompetitionConfig(targetAssembly, createOptions)); }
private static ManualCompetitionConfig Create( [NotNull] Assembly targetAssembly) { var createOptions = AppConfigHelpers.GetAppConfigOptions(targetAssembly); return(AppConfigHelpers.CreateAppCompetitionConfig(targetAssembly, createOptions)); }
private static ManualCompetitionConfig CreateRunConfigCore() { var result = new ManualCompetitionConfig { RerunIfLimitsFailed = true, ReportWarningsAsErrors = true }; result.Add(BenchmarkDotNet.Configs.DefaultConfig.Instance.GetColumns().ToArray()); result.Add(AppConfigHelpers.GetImportantOnlyLogger(typeof(SelfTestHelpers).Assembly)); return(result); }
/// <summary> /// Prepare and get a dictionary with both string key/values, formatted /// </summary> /// <param name="dictionaryForParsing"></param> /// <returns></returns> public Dictionary <string, string> PrepareDictionariesWithStrings(Dictionary <string, string> dictionaryForParsing) { var objToParse = default(Dictionary <string, string>); if (!object.ReferenceEquals(dictionaryForParsing, null)) { if (dictionaryForParsing.Any()) { var objParsingHelper = new AppConfigHelpers(); objToParse = dictionaryForParsing.ToDictionary (item => objParsingHelper.GetSplitStringFromConfigByParameter(item.Key, '_', false), item => (item.Value)); } } return(objToParse); }