Skip to content

Commit

Permalink
Don't provide an issue type for failed scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
nvborisenko committed Jun 6, 2018
1 parent ea0efc5 commit aef2a4a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/ReportPortal.SpecFlowPlugin/ReportPortalHooks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,12 @@ public void AfterScenario()
case ScenarioExecutionStatus.TestError:
status = Status.Failed;

issue = new Issue
currentScenario.Log(new AddLogItemRequest
{
Type = WellKnownIssueType.ToInvestigate,
Comment = this.ScenarioContext.TestError?.Message
};
Level = LogLevel.Error,
Time = DateTime.UtcNow,
Text = this.ScenarioContext.TestError?.Message
});

break;
case ScenarioExecutionStatus.BindingError:
Expand Down

0 comments on commit aef2a4a

Please sign in to comment.