pub struct TestRunner {
pub config: TestConfig,
pub mock_registry: MockRegistry,
pub results: Vec<TestResult>,
pub stats: TestStats,
}Expand description
Test runner that executes test suites
Fields§
§config: TestConfig§mock_registry: MockRegistry§results: Vec<TestResult>§stats: TestStatsImplementations§
Source§impl TestRunner
impl TestRunner
pub fn new() -> Self
pub fn with_config(self, config: TestConfig) -> Self
pub fn with_mock(self, mock: MockFunction) -> Self
pub fn run_suite(&mut self, suite: TestSuite) -> TestStats
pub fn run_test(&mut self, test_case: TestCase) -> TestResult
pub fn generate_report(&self, format: OutputFormat) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TestRunner
impl !RefUnwindSafe for TestRunner
impl Send for TestRunner
impl Sync for TestRunner
impl Unpin for TestRunner
impl UnsafeUnpin for TestRunner
impl !UnwindSafe for TestRunner
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