XUnit2Aliases.

XUnit2(ICakeContext, GlobPattern, XUnit2Settings) Method

Summary

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

Syntax

[CakeMethodAlias]
public static void XUnit2(this ICakeContext context, GlobPattern pattern, XUnit2Settings settings)

Examples

XUnit2("./src/**/bin/Release/*.Tests.dll",
     new XUnit2Settings {
        Parallelism = ParallelismOption.All,
        HtmlReport = true,
        NoAppDomain = 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 XUnit2Settings The settings.

Return Value

Type Description
void