pub enum FerroTestIsolationLevel {
PerAssembly,
PerTest,
}Expand description
Defines the isolation level for headless unit tests, controlling how the application and its associated dispatcher are managed between test runs.
Variants§
PerAssembly
Reuses a single application and dispatcher instance across all tests within the assembly.
Tests must not rely on any global or persistent state that could leak between runs. Headless framework won’t dispose any resources after tests when using this mode.
PerTest
Recreates the application and dispatcher for each individual test method.
This mode ensures complete test isolation, and should be used for tests that modify global application state or rely on a clean dispatcher environment. This is the default isolation level if none is specified.
Trait Implementations§
Source§impl Clone for FerroTestIsolationLevel
impl Clone for FerroTestIsolationLevel
impl Copy for FerroTestIsolationLevel
Source§impl Debug for FerroTestIsolationLevel
impl Debug for FerroTestIsolationLevel
impl Eq for FerroTestIsolationLevel
Source§impl Hash for FerroTestIsolationLevel
impl Hash for FerroTestIsolationLevel
Source§impl PartialEq for FerroTestIsolationLevel
impl PartialEq for FerroTestIsolationLevel
impl StructuralPartialEq for FerroTestIsolationLevel
Auto Trait Implementations§
impl Freeze for FerroTestIsolationLevel
impl RefUnwindSafe for FerroTestIsolationLevel
impl Send for FerroTestIsolationLevel
impl Sync for FerroTestIsolationLevel
impl Unpin for FerroTestIsolationLevel
impl UnsafeUnpin for FerroTestIsolationLevel
impl UnwindSafe for FerroTestIsolationLevel
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more