pub enum DiscoveredTest {
Simple {
name: String,
source: PathBuf,
setup: SetupConfig,
tests: Vec<TestEntry>,
browser: bool,
ram_override: Option<u32>,
requires_sudo: bool,
},
Lifecycle {
name: String,
source: PathBuf,
steps: Vec<StepDef>,
browser: bool,
ram_override: Option<u32>,
requires_sudo: bool,
},
}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
Sourcepub fn requires_sudo(&self) -> bool
pub fn requires_sudo(&self) -> bool
Whether this test declared requires_sudo (file- or test-level).
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
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more