XUnit2Aliases.

XUnit2(ICakeContext, IEnumerable<FilePath>) Method

Summary

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

Syntax

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

Examples

var testAssemblies = GetFiles("./src/**/bin/Release/*.Tests.dll");
XUnit2(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