VSTestAliases.

VSTest(ICakeContext, IEnumerable<FilePath>, VSTestSettings) Method

Summary

Runs all VSTest unit tests in the specified assemblies.
Namespace
Cake.Common.Tools.VSTest
Containing Type
VSTestAliases

Syntax

[CakeMethodAlias]
public static void VSTest(this ICakeContext context, IEnumerable<FilePath> assemblyPaths, VSTestSettings settings)

Examples

var paths = new List<FilePath>() { "./assemblydir1", "./assemblydir2" };
VSTest(paths, new VSTestSettings() { InIsolation = true });

Attributes

Type Description
CakeMethodAliasAttribute An attribute used to mark script method aliases.

Parameters

Name Type Description
context ICakeContext The context.
assemblyPaths IEnumerable<FilePath> The assembly paths.
settings VSTestSettings The settings.

Return Value

Type Description
void