Skip to content

Commit

Permalink
Fix benchmarks with same class but different namespace having same ID (
Browse files Browse the repository at this point in the history
  • Loading branch information
caaavik-msft committed Feb 13, 2024
1 parent 33e9e93 commit 1095280
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/BenchmarkDotNet.TestAdapter/BenchmarkCaseExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ internal static Guid GetTestCaseId(this BenchmarkCase benchmarkCase)
{
var testIdProvider = new TestIdProvider();
testIdProvider.AppendString(VsTestAdapter.ExecutorUriString);
testIdProvider.AppendString(benchmarkCase.Descriptor.Type.Namespace ?? string.Empty);
testIdProvider.AppendString(benchmarkCase.Descriptor.DisplayInfo);
testIdProvider.AppendString(benchmarkCase.GetUnrandomizedJobDisplayInfo());
testIdProvider.AppendString(benchmarkCase.Parameters.DisplayInfo);
Expand Down

0 comments on commit 1095280

Please sign in to comment.