Skip to content

Commit

Permalink
Don't investigate skipped tests (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
nvborisenko authored May 5, 2021
1 parent 960aced commit d209a98
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/ReportPortal.VSTest.TestLogger/ReportPortalLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,16 @@ private void Events_TestResult(object sender, TestResultEventArgs e)
Status = _statusMap[e.Result.Outcome]
};

// don't investigate skipped tests
if (finishTestRequest.Status == Status.Skipped)
{
finishTestRequest.Issue = new Client.Abstractions.Responses.Issue
{
Type = WellKnownIssueType.NotDefect,
Comment = e.Result.ErrorMessage
};
}

testReporter.Finish(finishTestRequest);
}
}
Expand Down

0 comments on commit d209a98

Please sign in to comment.