NUnit3Aliases Class

Summary

Contains functionality related to running NUnit v2 and v3 unit tests.

In order to use the commands for this alias, include the following in your build.cake file to download and install from nuget.org, or specify the ToolPath within the NUnit3Settings class:

#tool "nuget:?package=NUnit.ConsoleRunner"

Namespace
Cake.Common.Tools.NUnit
Base Types
  • object
graph BT Type-->Base0["object"] Type["NUnit3Aliases"] class Type type-node

Syntax

[CakeAliasCategory("NUnit v3")]
public static class NUnit3Aliases

Attributes

Type Description
CakeAliasCategoryAttribute An attribute used for documentation of alias methods/properties.

Methods

Name Value Summary
NUnit3(ICakeContext, GlobPattern, NUnit3Settings) void
Runs all NUnit unit tests in the assemblies matching the specified pattern, using the specified settings.
static
NUnit3(ICakeContext, GlobPattern) void
Runs all NUnit unit tests in the assemblies matching the specified pattern.
static
NUnit3(ICakeContext, IEnumerable<FilePath>, NUnit3Settings) void
Runs all NUnit unit tests in the specified assemblies, using the specified settings.
static
NUnit3(ICakeContext, IEnumerable<FilePath>) void
Runs all NUnit unit tests in the specified assemblies.
static
NUnit3(ICakeContext, IEnumerable<string>, NUnit3Settings) void
Runs all NUnit unit tests in the specified assemblies, using the specified settings.
static
NUnit3(ICakeContext, IEnumerable<string>) void
Runs all NUnit unit tests in the specified assemblies.
static

Extension Methods

Name Value Summary
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin