XUnitAliases.

XUnit(ICakeContext, IEnumerable<string>, 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<string> assemblies, XUnitSettings settings)

Examples

XUnit(new []{
    "./src/Cake.Common.Tests/bin/Release/Cake.Common.Tests.dll",
    "./src/Cake.Core.Tests/bin/Release/Cake.Core.Tests.dll",
    "./src/Cake.NuGet.Tests/bin/Release/Cake.NuGet.Tests.dll",
    "./src/Cake.Tests/bin/Release/Cake.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.
assemblies IEnumerable<string> The assemblies.
settings XUnitSettings The settings.

Return Value

Type Description
void