Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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
        }
Ejemplo n.º 3
0
        protected override bool TryGetTrxFile(AnalysisConfig config, ITeamBuildSettings settings, out string trxFilePath)
        {
            trxFilePath = new TrxFileReader(Logger).FindTrxFile(settings.BuildDirectory);

            return(true);
        }
Ejemplo n.º 4
0
        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
        }
Ejemplo n.º 5
0
        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
        }