Example #1
0
        /// <summary>
        /// Publishes and uploads code coverage results
        /// </summary>
        /// <param name="summaryFilePath">The code coverage summary file path.</param>
        /// <param name="data">The code coverage data</param>
        public void PublishCodeCoverage(FilePath summaryFilePath, TFBuildPublishCodeCoverageData data)
        {
            if (summaryFilePath == null)
            {
                throw new ArgumentNullException(nameof(summaryFilePath));
            }

            var properties = data.GetProperties(_environment, summaryFilePath);

            WriteLoggingCommand("codecoverage.publish", properties, string.Empty);
        }
Example #2
0
        /// <summary>
        /// Publishes and uploads code coverage results
        /// </summary>
        /// <param name="data">The code coverage data</param>
        public void PublishCodeCoverage(TFBuildPublishCodeCoverageData data)
        {
            var properties = data.GetProperties(_environment);

            WriteLoggingCommand("codecoverage.publish", properties, string.Empty);
        }