NUnit3Aliases.

NUnit3(ICakeContext, IEnumerable<FilePath>, NUnit3Settings) Method

Summary

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

Syntax

[CakeMethodAlias]
public static void NUnit3(this ICakeContext context, IEnumerable<FilePath> assemblies, NUnit3Settings settings)

Examples

var testAssemblies = GetFiles("./src/**/bin/Release/*.Tests.dll");
NUnit3(testAssemblies, new NUnit3Settings {
    NoResults = true
    });

Attributes

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

Parameters

Name Type Description
context ICakeContext The context.
assemblies IEnumerable<FilePath> The assemblies.
settings NUnit3Settings The settings.

Return Value

Type Description
void