XUnit2Aliases Class

Summary

Contains functionality related to running xunit tests.

In order to use the commands for this alias, include the following in your build.cake file to download and install from nuget.org, or specify the ToolPath within the XUnit2Settings class:

#tool "nuget:?package=xunit.runner.console"

Namespace
Cake.Common.Tools.XUnit
Base Types
  • object
graph BT Type-->Base0["object"] Type["XUnit2Aliases"] class Type type-node

Syntax

[CakeAliasCategory("xUnit v2")]
public static class XUnit2Aliases

Attributes

Type Description
CakeAliasCategoryAttribute An attribute used for documentation of alias methods/properties.

Methods

Name Value Summary
XUnit2(ICakeContext, IEnumerable<FilePath>) void
Runs all xUnit.net tests in the specified assemblies.
static
XUnit2(ICakeContext, IEnumerable<FilePath>, XUnit2Settings) void
Runs all xUnit.net v2 tests in the specified assemblies.
static
XUnit2(ICakeContext, IEnumerable<string>) void
Runs all xUnit.net v2 tests in the specified assemblies.
static
XUnit2(ICakeContext, IEnumerable<string>, XUnit2Settings) void
Runs all xUnit.net v2 tests in the specified assemblies.
static
XUnit2(ICakeContext, string) void
Runs all xUnit.net v2 tests in the assemblies matching the specified pattern.
static
XUnit2(ICakeContext, string, XUnit2Settings) void
Runs all xUnit.net v2 tests in the assemblies matching the specified pattern.
static