diff --git a/src/ReportPortal.VSTest.TestLogger/ReportPortalLogger.cs b/src/ReportPortal.VSTest.TestLogger/ReportPortalLogger.cs index 895118a..07d6138 100644 --- a/src/ReportPortal.VSTest.TestLogger/ReportPortalLogger.cs +++ b/src/ReportPortal.VSTest.TestLogger/ReportPortalLogger.cs @@ -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); } }