This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.MiniCover.
Summary
Contains functionality related to MiniCover.
In order to use the commands for this alias, create a tools project and use the
Cake.MiniCover.MiniCoverAliases.SetMiniCoverToolsProject(Cake.Core.ICakeContext,Cake.Core.IO.FilePath)
alias.
- Assembly
- Cake
.MiniCover .dll - Namespace
- Cake
.MiniCover - Base Types
-
- Object
graph BT
Type-->Base0["Object"]
Type["MiniCoverAliases"]
class Type type-node
Syntax
public static class MiniCoverAliases
Examples
SetMiniCoverToolsProject("./minicover/minicover.csproj");
MiniCover(tool =>
{
foreach(var project in GetFiles("./test/**/*.csproj"))
{
tool.DotNetCoreTest(project.FullPath, new DotNetCoreTestSettings()
{
// Required to keep instrumentation added by MiniCover
NoBuild = true,
Configuration = configuration
});
}
},
new MiniCoverSettings()
.WithAssembliesMatching("./test/**/*.dll")
.WithSourcesMatching("./src/**/*.cs")
.GenerateReport(ReportType.CONSOLE | ReportType.XML)
);
SetMiniCoverToolsProject("./minicover/minicover.csproj");
MiniCoverInstrument(
new MiniCoverSettings()
.WithAssembliesMatching("./test/**/*.dll")
.WithSourcesMatching("./src/**/*.cs")
);
MiniCoverReset();
DotNetCoreTest(...);
MiniCoverUninstrument();
MiniCoverReport(new MiniCoverSettings().GenerateReport(ReportType.CONSOLE | ReportType.XML));
Attributes
Type | Description |
---|---|
Cake |
|
Cake |
|
Cake |
Methods
Name | Value | Summary |
---|---|---|
MiniCover |
void |
Instruments test assemblies using MiniCover
before executing the specified test action to generate code coverage.
static
|
MiniCoverInstrument |
void |
Instrument the specified assemblies to gather coverage data
static
|
MiniCoverInstrument |
void |
Instrument the specified assemblies to gather coverage data
static
|
MiniCoverReport |
void |
Generate a report using the specified report provider name. Only use this if
if you need to generate a report for which Cake.MiniCover does not yet have
settings for.
static
|
MiniCoverReport |
void |
Generate a report using the specified report provider name. Only use this if
if you need to generate a report for which Cake.MiniCover does not yet have
settings for.
static
|
MiniCoverReport |
void |
Generate one or more minicover reports
static
|
MiniCoverReset |
void |
Reset coverage for the minicover project identified by the provided settings
static
|
MiniCoverReset |
void |
Reset coverage for the minicover project identified by the provided settings
static
|
Mini |
void |
Uninstrument the assemblies that were instrumented for code coverage
static
|
Mini |
void |
Uninstrument the assemblies that were instrumented for code coverage
static
|
Set |
void |
Set the location of the 'csproj' that contains the MiniCover DotNetCliToolReference
and restore packages for it
static
|
Extension Methods
Name | Value | Summary |
---|---|---|
ToDictionary |
IDictionary |
From ObjectHelpers
Requires the Cake.DeployParams addin
|
To |
string |
Returns the string value or a
Not set > markup suitable for Spectre.Console.
From StringExtensions
Requires the Cake.Issues addin
|