pub struct TestRunner { /* private fields */ }Expand description
Test runner integration for executing Perl tests
Provides functionality for running test suites, watch mode for continuous testing, and coverage tracking integration.
Implementations§
Source§impl TestRunner
impl TestRunner
Sourcepub fn new() -> TestRunner
pub fn new() -> TestRunner
Create a new test runner with default settings
Uses “prove -l” as the default test command.
Sourcepub fn with_command(command: String) -> TestRunner
pub fn with_command(command: String) -> TestRunner
Create a new test runner with a custom command
§Arguments
command- The shell command to execute tests (e.g., “prove -v -l”)
Sourcepub fn run_tests(&self, test_files: &[String]) -> TestResults
pub fn run_tests(&self, test_files: &[String]) -> TestResults
Run tests and return results
Sourcepub fn get_coverage(&self) -> Option<CoverageReport>
pub fn get_coverage(&self) -> Option<CoverageReport>
Get test coverage
Trait Implementations§
Source§impl Default for TestRunner
impl Default for TestRunner
Source§fn default() -> TestRunner
fn default() -> TestRunner
Returns the “default value” for a type. Read more
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