pub struct BatsExecutor { /* private fields */ }Expand description
BATS test executor with TAP (Test Anything Protocol) parser
Implementations§
Source§impl BatsExecutor
impl BatsExecutor
Sourcepub fn new(binary_name: String, binary_version: Option<String>) -> Self
pub fn new(binary_name: String, binary_version: Option<String>) -> Self
Create new BATS executor with default timeout (300 seconds)
Sourcepub fn with_timeout(
binary_name: String,
binary_version: Option<String>,
timeout: u64,
) -> Self
pub fn with_timeout( binary_name: String, binary_version: Option<String>, timeout: u64, ) -> Self
Create new BATS executor with custom timeout
Sourcepub fn with_skip_categories(self, skip: Vec<String>) -> Self
pub fn with_skip_categories(self, skip: Vec<String>) -> Self
Set categories to skip
Sourcepub fn verify_bats_installed() -> Result<String>
pub fn verify_bats_installed() -> Result<String>
Verify BATS is installed and available
§Examples
use cli_testing_specialist::runner::BatsExecutor;
match BatsExecutor::verify_bats_installed() {
Ok(version) => println!("BATS version: {}", version),
Err(e) => eprintln!("BATS not installed: {}", e),
}Sourcepub fn find_bats_files(test_dir: &Path) -> Result<Vec<PathBuf>>
pub fn find_bats_files(test_dir: &Path) -> Result<Vec<PathBuf>>
Find all BATS files in a directory
Sourcepub fn run_tests(&self, test_dir: &Path) -> Result<TestReport>
pub fn run_tests(&self, test_dir: &Path) -> Result<TestReport>
Execute all BATS files and generate report
Auto Trait Implementations§
impl Freeze for BatsExecutor
impl RefUnwindSafe for BatsExecutor
impl Send for BatsExecutor
impl Sync for BatsExecutor
impl Unpin for BatsExecutor
impl UnwindSafe for BatsExecutor
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more