DotCoverAliases.

DotCoverMerge(ICakeContext, IEnumerable<FilePath>, FilePath, DotCoverMergeSettings) Method

Summary

Runs DotCover Merge for the specified action and settings.
Namespace
Cake.Common.Tools.DotCover
Containing Type
DotCoverAliases

Syntax

[CakeMethodAlias]
[CakeAliasCategory("Merge")]
[CakeNamespaceImport("Cake.Common.Tools.DotCover.Merge")]
public static void DotCoverMerge(this ICakeContext context, IEnumerable<FilePath> sourceFiles, FilePath outputFile, DotCoverMergeSettings settings)

Examples

DotCoverMerge(new[] {
    new FilePath("./result1.dcvr"),
    new FilePath("./result2.dcvr")
  },
  new FilePath("./merged.dcvr"),
  new DotCoverMergeSettings {
    LogFile = new FilePath("./log.txt")
  });

Attributes

Type Description
CakeMethodAliasAttribute An attribute used to mark script method aliases.
CakeAliasCategoryAttribute An attribute used for documentation of alias methods/properties.
CakeNamespaceImportAttribute An attribute used to hint Cake about additional namespaces that need to be imported for an alias to work. This attribute can mark an extension method, the extension method class, or the assembly to provide a global set of imports.

Parameters

Name Type Description
context ICakeContext The context.
sourceFiles IEnumerable<FilePath> The list of DotCover coverage snapshot files.
outputFile FilePath The merged output file.
settings DotCoverMergeSettings The settings.

Return Value

Type Description
void