MSpecAliases.

MSpec(ICakeContext, IEnumerable<FilePath>, MSpecSettings) Method

Summary

Runs all MSpec tests in the specified assemblies.
Namespace
Cake.Common.Tools.MSpec
Containing Type
MSpecAliases

Syntax

[CakeMethodAlias]
public static void MSpec(this ICakeContext context, IEnumerable<FilePath> assemblies, MSpecSettings settings)

Examples

var testAssemblies = GetFiles("./src/**/bin/Release/*.Tests.dll");
MSpec(testAssemblies,
     new MSpecSettings {
        Parallelism = ParallelismOption.All,
        HtmlReport = true,
        NoAppDomain = true,
        OutputDirectory = "./build"
    });

Attributes

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

Parameters

Name Type Description
context ICakeContext The context.
assemblies IEnumerable<FilePath> The assemblies.
settings MSpecSettings The settings.

Return Value

Type Description
void