Skip to content

Commit

Permalink
Support of logging steps with Warn and Info statuses (#73)
Browse files Browse the repository at this point in the history
* add LogScopeStatus.Warn and LogScopeStatus.Info to mappings

* Upgraded shared dependency

* Update ReportPortalListener.Test.cs

formatting

* Fix formatting

Co-authored-by: Nikolay Borisenko <[email protected]>
  • Loading branch information
Bakanych and nvborisenko authored Jul 1, 2021
1 parent a4d2123 commit d31f7a5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<ItemGroup>
<PackageReference Include="NUnit" Version="3.11.0" />
<PackageReference Include="ReportPortal.Shared" Version="3.1.1" />
<PackageReference Include="ReportPortal.Shared" Version="3.1.3" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<PackageReference Include="NUnit.Engine.Api" Version="3.10.0">
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="ReportPortal.Shared" Version="3.1.1">
<PackageReference Include="ReportPortal.Shared" Version="3.1.3">
<PrivateAssets>contentfiles; analyzers;</PrivateAssets>
</PackageReference>
</ItemGroup>
Expand Down
7 changes: 4 additions & 3 deletions src/ReportPortal.NUnitExtension/ReportPortalListener.Test.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using ReportPortal.NUnitExtension.EventArguments;
using ReportPortal.NUnitExtension.LogHandler.Messages;
using ReportPortal.Shared.Converters;
using ReportPortal.Shared.Execution.Metadata;
using ReportPortal.Shared.Reporter;
using System;
using System.Collections.Generic;
Expand Down Expand Up @@ -484,7 +483,9 @@ private void HandleBeginScopeCommunicationMessage(XElement xElement, BeginScopeC
{ Shared.Execution.Logging.LogScopeStatus.InProgress, Status.InProgress },
{ Shared.Execution.Logging.LogScopeStatus.Passed, Status.Passed },
{ Shared.Execution.Logging.LogScopeStatus.Failed, Status.Failed },
{ Shared.Execution.Logging.LogScopeStatus.Skipped,Status.Skipped }
{ Shared.Execution.Logging.LogScopeStatus.Skipped, Status.Skipped },
{ Shared.Execution.Logging.LogScopeStatus.Warn, Status.Warn },
{ Shared.Execution.Logging.LogScopeStatus.Info, Status.Info }
};

private Dictionary<Shared.Execution.Logging.LogMessageLevel, LogLevel> _logMessageLevelMap = new Dictionary<Shared.Execution.Logging.LogMessageLevel, LogLevel> {
Expand Down Expand Up @@ -522,4 +523,4 @@ private string ExtractCodeReferenceFromFullName(string fullname)
return index == -1 ? fullname : fullname.Substring(0, index);
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<ItemGroup>
<PackageReference Include="nunit" Version="3.12.0" />
<PackageReference Include="ReportPortal.Shared" Version="3.1.1" />
<PackageReference Include="ReportPortal.Shared" Version="3.1.3" />
</ItemGroup>

</Project>

0 comments on commit d31f7a5

Please sign in to comment.