Skip to content

Commit

Permalink
Fix skipping dll suite as rootnamespace for nunit 12
Browse files Browse the repository at this point in the history
nvborisenko committed May 24, 2019
1 parent ede0138 commit 10b9406
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ReportPortal.NUnitExtension/ReportPortalListener.Suite.cs
Original file line number Diff line number Diff line change
@@ -39,7 +39,7 @@ private void StartSuite(XmlDocument xmlDoc)
var beforeSuiteEventArg = new TestItemStartedEventArgs(Bridge.Service, startSuiteRequest, null, xmlDoc.OuterXml);

var rootNamespaces = Config.GetValues<string>("rootNamespaces", null);
if (rootNamespaces != null && rootNamespaces.Any(n => n.StartsWith(fullname)))
if (rootNamespaces != null && rootNamespaces.Any(n => n == name))
{
beforeSuiteEventArg.Canceled = true;
}
@@ -176,8 +176,8 @@ private void FinishSuite(XmlDocument xmlDoc)

Action<string, FinishTestItemRequest, string, string> finishSuiteAction = (__id, __finishSuiteRequest, __report, __parentstacktrace) =>
{
// find all defferred children test items to finish
var deferredFlowItems = _flowItems.Where(fi => fi.Value.ParentId == __id && fi.Value.DeferredFinishAction != null).Select(fi => fi.Value).ToList();
// find all defferred children test items to finish
var deferredFlowItems = _flowItems.Where(fi => fi.Value.ParentId == __id && fi.Value.DeferredFinishAction != null).Select(fi => fi.Value).ToList();
foreach (var deferredFlowItem in deferredFlowItems)
{
deferredFlowItem.DeferredFinishAction.Invoke(deferredFlowItem.Id, deferredFlowItem.FinishTestItemRequest, deferredFlowItem.Report, __parentstacktrace);

0 comments on commit 10b9406

Please sign in to comment.