-
Notifications
You must be signed in to change notification settings - Fork 758
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#2385: TeamCity logger uses wrong flowId
- Loading branch information
1 parent
3edaa18
commit cd43469
Showing
12 changed files
with
350 additions
and
214 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
245 changes: 148 additions & 97 deletions
245
src/xunit.runner.reporters/TeamCityReporterMessageHandler.cs
Large diffs are not rendered by default.
Oops, something went wrong.
33 changes: 0 additions & 33 deletions
33
src/xunit.runner.reporters/Utility/TeamCityDisplayNameFormatter.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/xunit.runner.utility/Extensions/IAssemblyInfoExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using System.Reflection; | ||
using Xunit.Abstractions; | ||
|
||
/// <summary> | ||
/// Extension methods for <see cref="IAssemblyInfo"/>. | ||
/// </summary> | ||
public static class IAssemblyInfoExtensions | ||
{ | ||
/// <summary> | ||
/// Computes the simple assembly name from <see cref="IAssemblyInfo.Name"/>. | ||
/// </summary> | ||
/// <returns>The simple assembly name.</returns> | ||
public static string SimpleAssemblyName(this IAssemblyInfo assemblyInfo) | ||
{ | ||
Guard.ArgumentNotNull(nameof(assemblyInfo), assemblyInfo); | ||
Guard.ArgumentNotNullOrEmpty($"{nameof(assemblyInfo)}.{nameof(IAssemblyInfo.Name)}", assemblyInfo.Name); | ||
|
||
var parsedAssemblyName = new AssemblyName(assemblyInfo.Name); | ||
Guard.ArgumentValid(nameof(assemblyInfo), $"{nameof(assemblyInfo)}.{nameof(IAssemblyInfo.Name)} must include a name component", !string.IsNullOrEmpty(parsedAssemblyName.Name)); | ||
|
||
return parsedAssemblyName.Name; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.