xUnit v2 aliases

Built-In

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"

General

XUnit2(GlobPattern, XUnit2Settings) Runs all xUnit.net v2 tests in the assemblies matching the specified pattern.
XUnit2(GlobPattern) Runs all xUnit.net v2 tests in the assemblies matching the specified pattern.
XUnit2(IEnumerable<FilePath>, XUnit2Settings) Runs all xUnit.net v2 tests in the specified assemblies.
XUnit2(IEnumerable<FilePath>) Runs all xUnit.net tests in the specified assemblies.
XUnit2(IEnumerable<string>, XUnit2Settings) Runs all xUnit.net v2 tests in the specified assemblies.
XUnit2(IEnumerable<string>) Runs all xUnit.net v2 tests in the specified assemblies.