public Task InitializeAsync(ITestInput testInput, IMessageBus messageBus) { _addServices(this, testInput); var logsFolder = Path.Combine(DeployFilesFixture.TestFilesRoot, "Logs"); Directory.CreateDirectory(logsFolder); _log.SetLog(new Logger(testInput.FileSytemSafeName, logsFolder, this)); return(Task.CompletedTask); }
public Task <Task <RunSummary> > InitializeAsync(ITestInput testInput, IMessageBus messageBus) { try { var logsFolder = Path.Combine(DeployFilesFixture.TestFilesRoot, "Logs"); Directory.CreateDirectory(logsFolder); _log.SetLog(new Logger(testInput.FileSytemSafeName, logsFolder, new MaxLoggingPermissions())); _addServices(this, testInput); } catch (Exception) { return(Task.FromResult(Task.FromResult(new RunSummary { Failed = 1 }))); } return(MethodFixtureBase.DefaultInitializeTask); }
public CoreServicesFixture() { _services = TestCoreServices.CreateReal(); _log = new LogProxy(); _log.SetLog(_services.Log); }