Skip to content

Commit

Permalink
Downgrade xunit skip warning to info (#10379)
Browse files Browse the repository at this point in the history
  • Loading branch information
nohwnd authored Oct 8, 2024
1 parent c8f1628 commit bc91613
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/vstest.console/Internal/MSBuildLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bc91613

Please sign in to comment.