XUnitAliases 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 XUnitSettings class:

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

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

Syntax

[CakeAliasCategory("xUnit")]
public static class XUnitAliases

Attributes

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

Methods

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

Extension Methods

Name Value Summary
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin
ToStringWithNullMarkup() string
Returns the string value or a Not set> markup suitable for Spectre.Console.
Requires the Cake.Issues addin