XUnitAliases.

XUnit(ICakeContext, IEnumerable<FilePath>, XUnitSettings) Method

Summary

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

Syntax

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

Examples

var testAssemblies = GetFiles("./src/**/bin/Release/*.Tests.dll");
XUnit(testAssemblies,
     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.
assemblies IEnumerable<FilePath> The assemblies.
settings XUnitSettings The settings.

Return Value

Type Description
void