Skip to content

Named configuration profiles #575

@MatthewMckee4

Description

@MatthewMckee4

Support named profiles in karva.toml that bundle different settings for different contexts:

[profile.default]
fail-fast = false
retry = 0

[profile.ci]
fail-fast = true
retry = 2
timeout = "120s"

[profile.coverage]
num-workers = 1
show-output = true

Select with --profile:

karva test --profile ci

Profiles inherit from default and override specific settings. This avoids needing separate config files or long CLI flags for different environments.

See: https://nexte.st/docs/configuration/nextest-toml/#profiles

Metadata

Metadata

Assignees

No one assigned

    Labels

    configurationRelated to configuring Karva

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions