public void Dispose() { XpoTypesInfoHelper.Reset(); XafTypesInfo.HardReset(); // GC.Collect(); if (TestContext.CurrentContext.Result.Outcome.Status == TestStatus.Failed) { // var settingsPath = $"{AppDomain.CurrentDomain.ApplicationPath()}\\TestRun.Settings"; // while (!File.Exists(settingsPath)){ // var parent = new DirectoryInfo($"{Path.GetDirectoryName(settingsPath)}").Parent; // if (parent == null){ // settingsPath = null; // break; // } // settingsPath = $"{parent.FullName}\\TestRun.Settings"; // } // // if (settingsPath != null){ // var settings=Newtonsoft.Json.JsonConvert.DeserializeObject<dynamic>(settingsPath); // var fileName = $"{settings.TestArtifactsDirectory}\\TestsRun.zip"; // ZipFile.CreateFromDirectory(settings.TestArtifactsDirectory,fileName,CompressionLevel.NoCompression, false); // TestContext.AddTestAttachment(fileName); // } } }
public void Dispose() { XpoTypesInfoHelper.Reset(); XafTypesInfo.HardReset(); if (TestContext.CurrentContext.Result.Outcome.Status == TestStatus.Failed) { TestContext.AddTestAttachment(ReactiveLoggerService.RXLoggerLogPath); } }
public virtual void Dispose() { XpoTypesInfoHelper.Reset(); XafTypesInfo.HardReset(); }
public void Dispose() { XpoTypesInfoHelper.Reset(); XafTypesInfo.HardReset(); // GC.Collect(); }