MSTestAliases Class

Summary

Contains functionality related to running MSTest unit tests.

In order to use the commands for this alias, MSTest will need to be installed on the machine where the Cake script is being executed. This is typically achieved by having either Visual Studio installed, or by using the Microsoft Build Tools, for example, for 2015.

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

Syntax

[CakeAliasCategory("MSTest")]
public static class MSTestAliases

Attributes

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

Methods

Name Value Summary
MSTest(ICakeContext, GlobPattern, MSTestSettings) void
Runs all MSTest unit tests in the assemblies matching the specified pattern.
static
MSTest(ICakeContext, GlobPattern) void
Runs all MSTest unit tests in the assemblies matching the specified pattern.
static
MSTest(ICakeContext, IEnumerable<FilePath>, MSTestSettings) void
Runs all MSTest unit tests in the specified assemblies.
static
MSTest(ICakeContext, IEnumerable<FilePath>) void
Runs all MSTest unit tests in the specified assemblies.
static

Extension Methods

Name Value Summary
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin
ToStringWithNullMarkup() string
Requires the Cake.Issues addin