KarmaAliases.

KarmaStart(ICakeContext, KarmaStartSettings) Method

Summary

Runs karma start with settings.
Assembly
Cake.Karma.dll
Namespace
Cake.Karma
Containing Type
KarmaAliases

Syntax

public static void KarmaStart(this ICakeContext context, KarmaStartSettings settings)

Examples

Define the configuration file

var settings =
        new KarmaStartSettings
        {
           ConfigFile = "karma.conf.js"
        };
    KarmaStart(settings);

Run locally by specifying the run mode

var settings =
        new KarmaStartSettings
        {
            RunMode = KarmaRunMode.Local,
            ConfigFile = "karma.conf.js"
        };
    KarmaStart(settings);

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext The context.
settings KarmaStartSettings The command settings.

Return Value

Type Description
void