Summary
Runs all xUnit.net v2 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, XUnit2Settings settings)
Examples
var testAssemblies = GetFiles("./src/**/bin/Release/*.Tests.dll");
XUnit2(testAssemblies,
new XUnit2Settings {
Parallelism = ParallelismOption.All,
HtmlReport = true,
NoAppDomain = true,
OutputDirectory = "./build"
});
Attributes
Type | Description |
---|---|
Cake |
An attribute used to mark script method aliases. |
Parameters
Name | Type | Description |
---|---|---|
context | ICakeContext | The context. |
assemblies | IEnumerable |
The assemblies. |
settings | XUnit2Settings | The settings. |
Return Value
Type | Description |
---|---|
void |