Expand description
User-specific configuration for nextest.
User config stores per-user preferences that shouldn’t be version-controlled,
like UI preferences and default output settings. This is separate from the
repository config (.config/nextest.toml) which controls test execution
behavior.
§Config file location
The user config file is searched for in the following locations:
- Unix/macOS:
$XDG_CONFIG_HOME/nextest/config.tomlor~/.config/nextest/config.toml - Windows:
%APPDATA%\nextest\config.toml, with fallback to~/.config/nextest/config.tomlfor dotfiles portability
On Windows, both locations are checked in order, and the first existing config file is used. This allows users to share dotfiles across platforms.
§Configuration hierarchy
Settings are resolved in the following order (highest priority first):
- CLI arguments (e.g.,
--show-progress=bar) - Environment variables (e.g.,
NEXTEST_SHOW_PROGRESS=bar) - User overrides (first matching
[[overrides]]for each setting) - User base config (
[ui]section) - Built-in defaults
Modules§
- elements
- User config elements.
Structs§
- Early
User Config - Early user configuration for pager settings.
- User
Config - User configuration after custom settings and overrides have been applied.
Functions§
- user_
config_ paths - Returns candidate paths for the user config file, in order of priority.