pub struct TestFilterArgs {
pub integration: bool,
pub unit: bool,
pub tag: Vec<String>,
pub exclude_tag: Vec<String>,
pub name: Option<String>,
pub path: Option<String>,
pub timeout: Option<u64>,
pub list: bool,
pub verbose: bool,
pub test_args: Vec<String>,
}Expand description
A cargo subcommand for intelligent test filtering and compilation
Fields§
§integration: boolRun only integration tests (tests in tests/ directory)
unit: boolRun only unit tests (tests in src/ files)
tag: Vec<String>Filter tests by tag (e.g., –tag fast or –tag “slow,integration”)
exclude_tag: Vec<String>Exclude tests with these tags
name: Option<String>Filter tests by name pattern
path: Option<String>Filter tests by path pattern
timeout: Option<u64>Test timeout in seconds (per test)
list: boolList matching tests without running them
verbose: boolShow verbose output
test_args: Vec<String>Arguments to pass through to cargo test
Implementations§
Source§impl TestFilterArgs
impl TestFilterArgs
Sourcepub fn has_filters(&self) -> bool
pub fn has_filters(&self) -> bool
Check if any filters are active
Trait Implementations§
Source§impl Args for TestFilterArgs
impl Args for TestFilterArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for TestFilterArgs
impl CommandFactory for TestFilterArgs
Source§impl Debug for TestFilterArgs
impl Debug for TestFilterArgs
Source§impl FromArgMatches for TestFilterArgs
impl FromArgMatches for TestFilterArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Parser for TestFilterArgs
impl Parser for TestFilterArgs
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for TestFilterArgs
impl RefUnwindSafe for TestFilterArgs
impl Send for TestFilterArgs
impl Sync for TestFilterArgs
impl Unpin for TestFilterArgs
impl UnsafeUnpin for TestFilterArgs
impl UnwindSafe for TestFilterArgs
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