Summary
Publishes and uploads code coverage results.
- Namespace
- Cake
.Common .Build .AzurePipelines - Containing Type
- Azure
Pipelines Commands
Syntax
public void PublishCodeCoverage(FilePath summaryFilePath, Action<AzurePipelinesPublishCodeCoverageData> action)
Examples
if (BuildSystem.AzurePipelines.IsRunningOnAzurePipelines)
{
BuildSystem.AzurePipelines.Commands.PublishCodeCoverage("./coverage.xml", data =>
{
data.CodeCoverageTool = AzurePipelinesCodeCoverageToolType.Cobertura;
});
}
Parameters
| Name | Type | Description |
|---|---|---|
| summaryFilePath | FilePath | The code coverage summary file path. |
| action | Action |
The configuration action for the code coverage data. |
Return Value
| Type | Description |
|---|---|
| void |
