XUnitAliases.

XUnit(ICakeContext, GlobPattern, XUnitSettings) Method

Summary

Runs all xUnit.net tests in the assemblies matching the specified pattern.
Namespace
Cake.Common.Tools.XUnit
Containing Type
XUnitAliases

Syntax

[CakeMethodAlias]
public static void XUnit(this ICakeContext context, GlobPattern pattern, XUnitSettings settings)

Examples

XUnit("./src/**/bin/Release/*.Tests.dll",
     new XUnitSettings {
        HtmlReport = true,
        OutputDirectory = "./build"
    });

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 XUnitSettings The settings.

Return Value

Type Description
void