protected override void PostTestCleanup(object sender, PluginEventArgs e) { if (!ConfigurationService.GetSection <BugReportingSettings>().IsEnabled) { return; } base.PostTestCleanup(sender, e); if (e.TestOutcome == TestOutcome.Failed && _bugReportingContextService?.Context != null) { _bugReportingService.LogBug(_bugReportingContextService.Context, e.Exception.ToString(), _filesToBeAttached); } _bugReportingContextService?.ResetContext(); }
protected override void PostTestCleanup(object sender, PluginEventArgs e) { if (!IsBugReportingEnabled()) { return; } base.PostTestCleanup(sender, e); if ((e.TestOutcome == TestOutcome.Failed || e.TestOutcome == TestOutcome.Error) && _bugReportingContextService?.Context != null) { _bugReportingService.LogBug(_bugReportingContextService.Context.Value, e.Exception.ToString(), _filesToBeAttached); } _bugReportingContextService?.ResetContext(); }