protected override bool TryGetTrxFiles(AnalysisConfig config, ITeamBuildSettings settings, out IEnumerable <string> trxFilePaths) { trxFilePaths = new TrxFileReader(Logger).FindTrxFiles(settings.BuildDirectory); TrxFilesLocated = trxFilePaths != null && trxFilePaths.Any(); return(true); }
protected override bool TryGetVsCoverageFiles(AnalysisConfig config, ITeamBuildSettings settings, out IEnumerable <string> binaryFilePaths) { binaryFilePaths = new TrxFileReader(Logger).FindCodeCoverageFiles(settings.BuildDirectory); // Fallback to workround VSTS-179: if the standard searches for .trx/.converage failed // then try the fallback method to find coverage files if (!TrxFilesLocated && (binaryFilePaths == null || !binaryFilePaths.Any())) { Logger.LogInfo("Did not find any binary coverage files in the expected location."); binaryFilePaths = searchFallback.FindCoverageFiles(); } else { Logger.LogDebug("Not using the fallback mechanism to detect binary coverage files."); } return(true); // there aren't currently any conditions under which we'd want to stop processing }
protected override bool TryGetTrxFile(AnalysisConfig config, ITeamBuildSettings settings, out string trxFilePath) { trxFilePath = new TrxFileReader(Logger).FindTrxFile(settings.BuildDirectory); return(true); }
protected override bool TryGetBinaryReportFile(AnalysisConfig config, ITeamBuildSettings settings, out string binaryFilePath) { binaryFilePath = new TrxFileReader(Logger).LocateCodeCoverageFile(settings.BuildDirectory); return(true); // there aren't currently any conditions under which we'd want to stop processing }
protected override bool TryGetVsCoverageFiles(AnalysisConfig config, ITeamBuildSettings settings, out IEnumerable <string> binaryFilePaths) { binaryFilePaths = new TrxFileReader(Logger).FindCodeCoverageFiles(settings.BuildDirectory); return(true); // there aren't currently any conditions under which we'd want to stop processing }