pub trait TestCollectionStrategy<TData = ()> {
// Required method
fn collect_tests(
&self,
base: &Path
) -> Result<CollectedTestCategory<TData>, CollectTestsError>;
}
Expand description
Strategy for collecting tests.
Required Methods§
sourcefn collect_tests(
&self,
base: &Path
) -> Result<CollectedTestCategory<TData>, CollectTestsError>
fn collect_tests( &self, base: &Path ) -> Result<CollectedTestCategory<TData>, CollectTestsError>
Return a list of tests found in the provided base path.
Collected tests may return optional data. This might be useful
in scenarios where you want to collect multiple tests within
a file using the file_test_runner::collection::strategies::FileTestMapperStrategy
.