Skip to content

Commit

Permalink
Add test name to MSBuild where we have frame. (#4935)
Browse files Browse the repository at this point in the history
  • Loading branch information
nohwnd committed Mar 15, 2024
1 parent c609e2c commit 4140827
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Microsoft.TestPlatform.Build/Tasks/VSTestTask2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,8 @@ protected override void LogEventsFromTextOutput(string singleLine, MessageImport
var lineNumber = 0;
var _ = !StringUtils.IsNullOrWhiteSpace(place) && int.TryParse(line, out lineNumber);

string? singleLineError = JoinSingleLineAndShorten(place, fullErrorMessage);
string? nameAndPlace = place == displayName ? place : $"{displayName}: {place}";
string? singleLineError = JoinSingleLineAndShorten(nameAndPlace, fullErrorMessage);

file ??= string.Empty;

Expand Down

0 comments on commit 4140827

Please sign in to comment.