pub fn run_fixtures(
files: Vec<PathBuf>,
bal_sequential: bool,
storage_settings: StorageSettings,
workers: usize,
on_result: &(dyn Fn(Result<FixtureResult, Error>) + Sync),
) -> Result<(), Error>Expand description
Runs every fixture in the JSON files on workers threads and passes one result per
fixture to on_result as it completes. A file that fails to load is reported as an error,
without creating a fixture result. Each datadir is created in the temporary directory
(TMPDIR), where a tmpfs avoids disk syncs, and its genesis is written with storage_settings.
Returns an error if the fixture engines cannot be cleaned up completely.