@hegeldev/hegel
    Preparing search index...

    Interface Settings

    Settings for a run. Every field is optional; a field left out keeps the value the engine resolved from the settings profile (see profile), hegel.toml and the HEGEL_* environment variables.

    The profile is resolved when the settings are used: when a test given them runs, when registerProfile snapshots them, or when resolveSettings turns them into a ResolvedSettings.

    interface Settings {
        backend?: Backend;
        database?: Database;
        derandomize?: boolean;
        nondeterminismStrictness?: NondeterminismStrictness;
        phases?: Phase[];
        printBlob?: boolean;
        profile?: string;
        reportMultipleFailures?: boolean;
        seed?: number | bigint | null;
        showStatistics?: boolean;
        stopOnFirstFailure?: boolean;
        suppressHealthCheck?: HealthCheck[];
        testCases?: number;
        unboundedChoices?: boolean;
        verbosity?: Verbosity;
    }
    Index

    Properties

    backend?: Backend

    The source of randomness.

    database?: Database

    Where failing examples are stored between runs.

    derandomize?: boolean

    Derive the seed from the test's identity rather than fresh randomness, when no seed is set. On by default in the ci profile.

    nondeterminismStrictness?: NondeterminismStrictness

    How the run reacts to a nondeterministic test.

    phases?: Phase[]

    The phases to run. All of them by default.

    printBlob?: boolean

    Print a reproduction blob with each failure. On by default.

    profile?: string

    The profile to start from instead of the default one: a shipped profile (development, ci, workload), one defined in hegel.toml, or one registered with registerProfile. base is the plain base settings.

    reportMultipleFailures?: boolean

    Keep searching after the first failure, and report every distinct one.

    seed?: number | bigint | null

    A fixed seed, an integer in [0, 2^64), so that a run is reproducible; null clears a seed set by the profile.

    showStatistics?: boolean

    Print statistics of the test's events at the end of the run.

    stopOnFirstFailure?: boolean

    Stop generating once a failure is found (the default). With false, the run uses its whole testCases budget first.

    suppressHealthCheck?: HealthCheck[]

    The health checks to turn off. [] turns every one back on.

    testCases?: number

    The number of valid test cases to run, a non-negative safe integer. 100 in the base settings.

    unboundedChoices?: boolean

    Let a test case make any number of choices. By default one is cut off as too large after 2^20.

    verbosity?: Verbosity

    How much the engine prints.