NUnitAliases.

NUnit(ICakeContext, GlobPattern, NUnitSettings) Method

Summary

Runs all NUnit unit tests in the assemblies matching the specified pattern, using the specified settings.
Namespace
Cake.Common.Tools.NUnit
Containing Type
NUnitAliases

Syntax

[CakeMethodAlias]
public static void NUnit(this ICakeContext context, GlobPattern pattern, NUnitSettings settings)

Examples

NUnit("./src/UnitTests/*.dll", new NUnitSettings {
    Timeout = 4000,
    StopOnError = true
    });

Attributes

Type Description
CakeMethodAliasAttribute An attribute used to mark script method aliases.

Parameters

Name Type Description
context ICakeContext The context.
pattern GlobPattern The pattern.
settings NUnitSettings The settings.

Return Value

Type Description
void