diff --git a/src/ReportPortal.VSTest.TestLogger/ReportPortalLogger.cs b/src/ReportPortal.VSTest.TestLogger/ReportPortalLogger.cs index 8385b00..d27a4c7 100644 --- a/src/ReportPortal.VSTest.TestLogger/ReportPortalLogger.cs +++ b/src/ReportPortal.VSTest.TestLogger/ReportPortalLogger.cs @@ -223,8 +223,17 @@ private void Events_TestResult(object sender, TestResultEventArgs e) try { - var sharedMessage = - Client.Converters.ModelSerializer.Deserialize(line); + SharedLogMessage sharedMessage; + + // SpecRun adapter add this for output messages, just trim it for internal messages + if (line.StartsWith("-> ")) + { + sharedMessage = Client.Converters.ModelSerializer.Deserialize(line.Substring(3)); + } + else + { + sharedMessage = Client.Converters.ModelSerializer.Deserialize(line); + } var logRequest = new AddLogItemRequest {