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
impl Settings
Sourcepub fn validate_layer(&self, context: &str) -> Result<()>
pub fn validate_layer(&self, context: &str) -> Result<()>
Validates a single configuration layer (value ranges, syntax, and intra-layer conflicts).
Sourcepub fn overlay(&self, upper: &Settings) -> Settings
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.
Sourcepub fn validate_effective(&self, context: &str) -> Result<()>
pub fn validate_effective(&self, context: &str) -> Result<()>
Validates the final merged settings after all layers have been combined.
Sourcepub fn parsed_output_fixtures(&self) -> Result<Vec<Fixture>>
pub fn parsed_output_fixtures(&self) -> Result<Vec<Fixture>>
Parses copy_output_fixture strings into validated Fixture values.
Sourcepub fn parsed_stage_external(&self) -> Result<Vec<StageExternal>>
pub fn parsed_stage_external(&self) -> Result<Vec<StageExternal>>
Parses stage_external strings into validated StageExternal values.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Settings
impl<'de> Deserialize<'de> for Settings
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Settings
impl StructuralPartialEq for Settings
Auto Trait Implementations§
impl Forget for Settings
impl Freeze for Settingswhere
*const u8 is !null: Freeze,
PhantomData<String>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<PathBuf>: Freeze,
impl Move for Settings
impl RefUnwindSafe for Settings
impl Send for Settingswhere
RawVecInner: Send,
impl Sync for Settingswhere
RawVecInner: Sync,
impl Unpin for Settings
impl UnsafeUnpin for Settingswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<PathBuf>: UnsafeUnpin,
impl UnwindSafe for Settingswhere
RawVecInner: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.