Skip to main content

Settings

Struct Settings 

Source
pub struct Settings {
Show 48 fields pub exclude_file: Option<Vec<String>>, pub rebuild: Option<bool>, pub source_only: Option<bool>, pub error: Option<Vec<String>>, pub literal_operators: Option<bool>, pub verify: Option<bool>, pub effects: Option<bool>, pub audit: Option<usize>, pub also_test: Option<Vec<String>>, pub dependents: Option<bool>, pub test_workspace: Option<bool>, pub doc: Option<bool>, pub test_tool: Option<TestTool>, pub nextest_profile: Option<String>, pub isolate_tests: Option<bool>, pub lib: Option<bool>, pub bins: Option<bool>, pub test: Option<Vec<String>>, pub test_target: Option<Vec<String>>, pub test_filter: Option<Vec<String>>, pub include_test: Option<Vec<String>>, pub exclude_test: Option<Vec<String>>, pub include_ignored: Option<bool>, pub test_wrapper: Option<PathBuf>, pub wrapper_grace: Option<u64>, pub format: Option<OutputFormat>, pub show_unreached: Option<bool>, pub quiet: Option<bool>, pub baseline: Option<PathBuf>, pub ignore_likely_equivalent: Option<bool>, pub jobs: Option<u32>, pub baseline_jobs: Option<u32>, pub baseline_timeout: Option<u64>, pub timeout: Option<u64>, pub timeout_recheck: Option<TimeoutRecheck>, pub checkpoint: Option<bool>, pub opt_level: Option<u8>, pub features: Option<Vec<String>>, pub all_features: Option<bool>, pub no_default_features: Option<bool>, pub locked: Option<bool>, pub work_dir: Option<PathBuf>, pub all_files: Option<bool>, pub git_index: Option<bool>, pub copy_fixture: Option<Vec<PathBuf>>, pub copy_fixture_exclude: Option<Vec<PathBuf>>, pub copy_output_fixture: Option<Vec<String>>, pub stage_external: Option<Vec<String>>,
}
Expand description

Declarative settings that may appear at the top level of tmt.toml, under [package.<name>], or as a CLI override layer.

Fields§

§exclude_file: Option<Vec<String>>§rebuild: Option<bool>§source_only: Option<bool>§error: Option<Vec<String>>§literal_operators: Option<bool>§verify: Option<bool>§effects: Option<bool>§audit: Option<usize>§also_test: Option<Vec<String>>§dependents: Option<bool>§test_workspace: Option<bool>§doc: Option<bool>§test_tool: Option<TestTool>§nextest_profile: Option<String>§isolate_tests: Option<bool>§lib: Option<bool>§bins: Option<bool>§test: Option<Vec<String>>§test_target: Option<Vec<String>>§test_filter: Option<Vec<String>>§include_test: Option<Vec<String>>§exclude_test: Option<Vec<String>>§include_ignored: Option<bool>§test_wrapper: Option<PathBuf>§wrapper_grace: Option<u64>§format: Option<OutputFormat>§show_unreached: Option<bool>§quiet: Option<bool>§baseline: Option<PathBuf>§ignore_likely_equivalent: Option<bool>§jobs: Option<u32>§baseline_jobs: Option<u32>§baseline_timeout: Option<u64>§timeout: Option<u64>§timeout_recheck: Option<TimeoutRecheck>§checkpoint: Option<bool>§opt_level: Option<u8>§features: Option<Vec<String>>§all_features: Option<bool>§no_default_features: Option<bool>§locked: Option<bool>§work_dir: Option<PathBuf>§all_files: Option<bool>§git_index: Option<bool>§copy_fixture: Option<Vec<PathBuf>>§copy_fixture_exclude: Option<Vec<PathBuf>>§copy_output_fixture: Option<Vec<String>>§stage_external: Option<Vec<String>>

Implementations§

Source§

impl Settings

Source

pub fn validate_layer(&self, context: &str) -> Result<()>

Validates a single configuration layer (value ranges, syntax, and intra-layer conflicts).

Source

pub fn overlay(&self, upper: &Settings) -> Settings

Overlays upper on top of self. Upper values replace lower values, and explicit mode switches in upper clear mutually exclusive lower-layer settings.

Source

pub fn validate_effective(&self, context: &str) -> Result<()>

Validates the final merged settings after all layers have been combined.

Source

pub fn parsed_output_fixtures(&self) -> Result<Vec<Fixture>>

Parses copy_output_fixture strings into validated Fixture values.

Source

pub fn parsed_stage_external(&self) -> Result<Vec<StageExternal>>

Parses stage_external strings into validated StageExternal values.

Trait Implementations§

Source§

impl Clone for Settings

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Settings

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Settings

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Settings

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for Settings

Source§

impl PartialEq for Settings

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Settings

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.