Skip to content

Commit

Permalink
use different flowId for different test retries (this fixes test outp…
Browse files Browse the repository at this point in the history
…ut for parallel tests)
  • Loading branch information
fakefeik committed Feb 27, 2024
1 parent 5555c51 commit f7df978
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions NUnit.Retries/TeamCity/TestContextExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,19 +73,18 @@ private static void TestFinished(this TextWriter writer, IDictionary<string, str
private static Dictionary<string, string> GetTestProperties(ITest test)
{
var assembly = test.TypeInfo!.Assembly;
var suiteName = test.TypeInfo.Assembly.GetName().Name;
var testSource = assembly.Location;
var testId = Guid.NewGuid().ToString();
var suiteName = assembly.GetName().Name!;

return new Dictionary<string, string>
{
["name"] = $"{suiteName}: {test.FullName}",
["captureStandardOutput"] = "false",
["suiteName"] = suiteName,
["testSource"] = testSource,
["testSource"] = assembly.Location,
["displayName"] = test.Name,
["fullyQualifiedName"] = test.FullName,
["id"] = testId,
["id"] = Guid.NewGuid().ToString(),
["flowId"] = Guid.NewGuid().ToString(),
};
}
}
Expand Down

0 comments on commit f7df978

Please sign in to comment.