Type object
File match **/.cargo/mutants.toml
Schema URL https://catalog.lintel.tools/schemas/schemastore/cargo-mutants-config-yaml/latest.json
Source https://www.schemastore.org/cargo-mutants-config.json

Validate with Lintel

npx @lintel/lintel check
Type: object

cargo-mutants configuration, read by default from .cargo/mutants.toml.

See https://mutants.rs/.

Properties

additional_cargo_args string[]

Pass extra args to every cargo invocation.

Default:
[]
additional_cargo_test_args string[]

Pass extra args to cargo test.

Default:
[]
build_timeout_multiplier number | null

Build timeout multiplier, relative to the baseline 'cargo build'.

Default: null
format=double
cap_lints boolean

Pass --cap-lints to rustc.

Default: false
copy_vcs boolean | null

Copy .git and other VCS directories to the build directory.

Default: null
error_values string[]

Generate these error values from functions returning Result.

Default:
[]
examine_globs string[]

Generate mutants from source files matching these globs.

Default:
[]
examine_re string[]

Examine only mutants matching these regexps.

Default:
[]
exclude_globs string[]

Exclude mutants from source files matching these globs.

Default:
[]
exclude_re string[]

Exclude mutants from source files matches these regexps.

Default:
[]
minimum_test_timeout number | null

Minimum test timeout, in seconds, as a floor on the autoset value.

Default: null
format=double
output string | null

Output directory.

Default: null
profile string | null

Cargo profile.

Default: null
skip_calls string[]

Skip calls to functions or methods with these names.

This is combined with values from the --skip-calls argument.

Default:
[]
skip_calls_defaults boolean | null

Use built-in defaults for skip_calls in addition to any explicit values.

Default: null
test_package string[]

Run tests from these packages for all mutants.

Default:
[]
test_tool TestTool | null

Choice of test tool: cargo or nextest.

test_workspace boolean | null

Run tests from all packages in the workspace, not just the mutated package.

Overrides test_package.

Default: null
timeout_multiplier number | null

Timeout multiplier, relative to the baseline 'cargo test'.

Default: null
format=double

Definitions

TestTool string | string

Choice of tool to use to run tests.