Interface ILoadConfigurationOptions

Options for loadConfiguration

interface ILoadConfigurationOptions {
    file?: string | false;
    profiles?: string[];
    provided?: string | string[] | Partial<IConfiguration>;
}

Properties

file?: string | false

Path to load configuration file from, or false to skip

cucumber.(json|yaml|yml|js|cjs|mjs)

profiles?: string[]

Zero or more profile names from which to source configuration in the file

If omitted or empty, the default profile will be used.

provided?: string | string[] | Partial<IConfiguration>

Ad-hoc configuration options to be merged over the top of whatever is loaded from the configuration file/profiles

{
failFast: true,
parallel: 2
}
["--fail-fast", "--parallel", "2"]
"--fail-fast --parallel 2"

This can also be provided as an array or single string of argv-style arguments.