pub struct TestRunner<'a> { /* private fields */ }Implementations§
Source§impl<'a> TestRunner<'a>
impl<'a> TestRunner<'a>
pub fn new(args: &'a TestFilterArgs) -> Self
Sourcepub fn list_test_functions(&self, functions: &[TestFunction])
pub fn list_test_functions(&self, functions: &[TestFunction])
List the test functions without running them
Sourcepub fn run_test_functions(&self, functions: &[TestFunction]) -> Result<()>
pub fn run_test_functions(&self, functions: &[TestFunction]) -> Result<()>
Run the filtered test functions using cargo test This is the primary method that provides function-level filtering
Sourcepub fn run_tests(&self, targets: &[TestTarget]) -> Result<()>
pub fn run_tests(&self, targets: &[TestTarget]) -> Result<()>
Legacy: Run the filtered tests using cargo test (file-level)
Sourcepub fn run_all_tests(&self) -> Result<()>
pub fn run_all_tests(&self) -> Result<()>
Run all tests without filtering (fallback)
Auto Trait Implementations§
impl<'a> Freeze for TestRunner<'a>
impl<'a> RefUnwindSafe for TestRunner<'a>
impl<'a> Send for TestRunner<'a>
impl<'a> Sync for TestRunner<'a>
impl<'a> Unpin for TestRunner<'a>
impl<'a> UnsafeUnpin for TestRunner<'a>
impl<'a> UnwindSafe for TestRunner<'a>
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