XUnitAliases.

XUnit(ICakeContext, IEnumerable<FilePath>) 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)

Examples

var testAssemblies = GetFiles("./src/**/bin/Release/*.Tests.dll");
XUnit(testAssemblies);

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.

Return Value

Type Description
void