pub enum FrameworkConfig {
Pytest(PytestFrameworkConfig),
Cargo(CargoFrameworkConfig),
Default(DefaultFrameworkConfig),
}Expand description
Test framework configuration specifying how tests are found and run.
This is a tagged enum that selects the test framework based on the
type field in TOML. Each variant contains framework-specific settings.
Variants§
Pytest(PytestFrameworkConfig)
Discover and run Python tests with pytest.
Cargo(CargoFrameworkConfig)
Discover and run Rust tests with cargo test.
Default(DefaultFrameworkConfig)
Discover and run tests with custom shell commands.
Implementations§
Source§impl FrameworkConfig
impl FrameworkConfig
Sourcepub fn test_id_format(&self) -> &str
pub fn test_id_format(&self) -> &str
Returns the test ID format string for this framework.
The format string is used to construct test IDs from JUnit XML attributes.
Available placeholders are {name} and {classname}.
Trait Implementations§
Source§impl Clone for FrameworkConfig
impl Clone for FrameworkConfig
Source§fn clone(&self) -> FrameworkConfig
fn clone(&self) -> FrameworkConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FrameworkConfig
impl Debug for FrameworkConfig
Source§impl<'de> Deserialize<'de> for FrameworkConfig
impl<'de> Deserialize<'de> for FrameworkConfig
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
Auto Trait Implementations§
impl Freeze for FrameworkConfig
impl RefUnwindSafe for FrameworkConfig
impl Send for FrameworkConfig
impl Sync for FrameworkConfig
impl Unpin for FrameworkConfig
impl UnsafeUnpin for FrameworkConfig
impl UnwindSafe for FrameworkConfig
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