public static DotNetTestSettings AddTeamCityLogger(this DotNetTestSettings toolSettings) { ControlFlow.Assert(TeamCity.Instance != null, "TeamCity.Instance != null"); var teamcityPackage = NuGetPackageResolver .GetLocalInstalledPackage("TeamCity.Dotnet.Integration", ToolPathResolver.NuGetPackagesConfigFile) .NotNull("teamcityPackage != null"); var loggerPath = teamcityPackage.Directory / "build" / "_common" / "vstest15"; ControlFlow.Assert(Directory.Exists(loggerPath), $"Directory.Exists({loggerPath})"); return(toolSettings .SetLogger("teamcity") .SetTestAdapterPath(loggerPath)); }
public static DotNetTestSettings EnableTrxLogOutput(this DotNetTestSettings settings, string resultsDirectory) { return(settings .SetLogger("trx") .SetResultsDirectory(resultsDirectory)); }