KarmaAliases.

KarmaInit(ICakeContext, Action<KarmaSettings>) Method

Summary

Runs karma init with a function for settings.
Assembly
Cake.Karma.dll
Namespace
Cake.Karma
Containing Type
KarmaAliases

Syntax

public static void KarmaInit(this ICakeContext context, Action<KarmaSettings> configureSettings)

Examples

Define the configuration file

KarmaInit(settings => 
    {
        settings.ConfigFile = "karma.conf.js";
    });

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext The context.
configureSettings Action<KarmaSettings> Function to supply for configuring settings.

Return Value

Type Description
void