Function ui_test::run_tests_generic
source · pub fn run_tests_generic(
configs: Vec<Config>,
file_filter: impl Fn(&Path, &Config) -> Option<bool> + Sync,
per_file_config: impl Fn(&mut Config, &Path, &[u8]) + Sync,
status_emitter: impl StatusEmitter + Send
) -> Result<()>
Expand description
A version of run_tests
that allows more fine-grained control over running tests.
All configs
are being run in parallel.
If multiple configs are provided, the Config::threads
value of the first one is used;
the thread count of all other configs is ignored.
The file filter is supposed to return None
if it was filtered because of file extensions
and Some(false)
if the file was rejected out of other reasons like the file path not matching
a user defined filter.