pub enum DiscoveredTest {
Simple {
name: String,
source: PathBuf,
setup: SetupConfig,
tests: Vec<TestEntry>,
browser: bool,
ram_override: Option<u32>,
},
Lifecycle {
name: String,
source: PathBuf,
steps: Vec<StepDef>,
browser: bool,
ram_override: Option<u32>,
},
}Expand description
A discovered test suite — either simple (setup + assertions) or lifecycle (interleaved steps).
Variants§
Simple
Simple tests: setup services/quadlets, then run assertions.
Fields
§
source: PathBufThe test.toml this test was loaded from. Used by --list to
group tests by file and show where to edit them.
§
setup: SetupConfigLifecycle
Lifecycle tests: interleaved actions and assertions.
Implementations§
Source§impl DiscoveredTest
impl DiscoveredTest
pub fn name(&self) -> &str
Sourcepub fn source(&self) -> &Path
pub fn source(&self) -> &Path
Path to the test.toml this test was discovered in. Same-file
tests share this path — used by --list to group and show
editable paths.
Sourcepub fn step_kinds(&self) -> Vec<&'static str>
pub fn step_kinds(&self) -> Vec<&'static str>
Distinct step action kinds in order of first appearance. Used to
summarize what a test does on --list (e.g., “add → wait → http →
playwright” tells you it’s a browser test without reading the file).
Sourcepub fn services(&self) -> Vec<&str>
pub fn services(&self) -> Vec<&str>
All services that need to be deployed for this test, in install order.
pub fn tests(&self) -> &[TestEntry]
pub fn test_count(&self) -> usize
pub fn summary(&self) -> String
pub fn is_lifecycle(&self) -> bool
pub fn has_quadlets(&self) -> bool
pub fn needs_browser(&self) -> bool
pub fn ram_override(&self) -> Option<u32>
Trait Implementations§
Source§impl Clone for DiscoveredTest
impl Clone for DiscoveredTest
Source§fn clone(&self) -> DiscoveredTest
fn clone(&self) -> DiscoveredTest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DiscoveredTest
impl RefUnwindSafe for DiscoveredTest
impl Send for DiscoveredTest
impl Sync for DiscoveredTest
impl Unpin for DiscoveredTest
impl UnsafeUnpin for DiscoveredTest
impl UnwindSafe for DiscoveredTest
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