Beispiel #1
0
        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);
//                }
            }
        }
Beispiel #2
0
 public void Dispose()
 {
     XpoTypesInfoHelper.Reset();
     XafTypesInfo.HardReset();
     if (TestContext.CurrentContext.Result.Outcome.Status == TestStatus.Failed)
     {
         TestContext.AddTestAttachment(ReactiveLoggerService.RXLoggerLogPath);
     }
 }
Beispiel #3
0
 public virtual void Dispose()
 {
     XpoTypesInfoHelper.Reset();
     XafTypesInfo.HardReset();
 }
Beispiel #4
0
        public void Dispose()
        {
            XpoTypesInfoHelper.Reset();
            XafTypesInfo.HardReset();
//            GC.Collect();
        }