NUnitAliases Class

Summary

Contains functionality related to running NUnit 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 NUnitSettings class:

#tool "nuget:?package=NUnit.Runners&version=2.6.4"

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

Syntax

[CakeAliasCategory("NUnit")]
public static class NUnitAliases

Attributes

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

Methods

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