Skip to content

Commit

Permalink
Add possible fix for spekt#29
Browse files Browse the repository at this point in the history
Co-Authored-By: June Rhodes <jrhodes@redpoint.games>
  • Loading branch information
Siphonophora and hach-que committed Feb 27, 2022
1 parent b0201ba commit 8ac513f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/TestLogger/Extensions/XunitTestAdapter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ public List<TestResultInfo> TransformResults(
result.Messages.Add(new TestResultMessage("skipReason", skipReason));
}

string displayName = result.Result.DisplayName;

// Add parameters for theories.
if (displayName is string dn && dn.Contains("("))
{
result.Method += dn.Substring(displayName.IndexOf("("));
}

transformedResults.Add(result);
}

Expand Down

0 comments on commit 8ac513f

Please sign in to comment.