KarmaAliases.

KarmaRun(ICakeContext, KarmaRunSettings) Method

Summary

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

Syntax

public static void KarmaRun(this ICakeContext context, KarmaRunSettings settings)

Examples

Define the configuration file

var settings =
        new KarmaRunSettings
        {
           ConfigFile = "karma.conf.js"
        };
    KarmaRun(settings);

Run locally by specifying the run mode

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

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

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

Return Value

Type Description
void