ITeamCityProvider.

ImportDotCoverCoverage(FilePath, DirectoryPath) Method

Summary

Tell TeamCity to import coverage from dotCover snapshot file.
Namespace
Cake.Common.Build.TeamCity
Containing Type
ITeamCityProvider

Syntax

void ImportDotCoverCoverage(FilePath snapshotFile, DirectoryPath dotCoverHome = null)

Examples

if (BuildSystem.TeamCity.IsRunningOnTeamCity)
{
    BuildSystem.TeamCity.ImportDotCoverCoverage("./coverage.dcvr");
}
if (TeamCity.IsRunningOnTeamCity)
{
    TeamCity.ImportDotCoverCoverage("./coverage.dcvr");
}

Parameters

Name Type Description
snapshotFile FilePath Snapshot file path.
dotCoverHome DirectoryPath The full path to the dotCover home folder to override the bundled dotCover.

Return Value

Type Description
void