diff --git a/src/vstest.console/Internal/MSBuildLogger.cs b/src/vstest.console/Internal/MSBuildLogger.cs index 7a087592eb..691236db32 100644 --- a/src/vstest.console/Internal/MSBuildLogger.cs +++ b/src/vstest.console/Internal/MSBuildLogger.cs @@ -78,7 +78,15 @@ private void TestMessageHandler(object? sender, TestRunMessageEventArgs e) SendMessage($"output-info", e.Message); break; case TestMessageLevel.Warning: - SendMessage($"output-warning", e.Message); + // Downgrade xUnit skip warning to info, otherwise any skipped test will report warning, which is often upgraded to error. + if (e.Message.EndsWith("[SKIP]")) + { + SendMessage($"output-info", e.Message); + } + else + { + SendMessage($"output-warning", e.Message); + } break; case TestMessageLevel.Error: SendMessage($"output-error", e.Message);