Summary
Runs all xUnit.net v2 tests in the specified assemblies.
Syntax
[CakeMethodAlias]
public static void XUnit2(this ICakeContext context, IEnumerable<string> assemblies, XUnit2Settings settings)
Examples
XUnit2(new []{
"./src/Cake.Common.Tests/bin/Release/Cake.Common.Tests.dll",
"./src/Cake.Core.Tests/bin/Release/Cake.Core.Tests.dll",
"./src/Cake.NuGet.Tests/bin/Release/Cake.NuGet.Tests.dll",
"./src/Cake.Tests/bin/Release/Cake.Tests.dll"
},
new XUnit2Settings {
Parallelism = ParallelismOption.All,
HtmlReport = true,
NoAppDomain = true,
OutputDirectory = "./build"
});
Attributes
Parameters
Name |
Type |
Description |
context |
ICakeContext |
The context. |
assemblies |
IEnumerable<string> |
The assemblies. |
settings |
XUnit2Settings |
The settings. |
Return Value