pub struct Opts {
pub dir: PathBuf,
pub diff: bool,
pub save: bool,
pub dry_run: bool,
pub verbose: bool,
pub post_filter: Option<OnlyOpt>,
pub exclude_filter: Option<String>,
pub include_filter: Option<String>,
pub jobs_limit: Option<usize>,
pub max_futures: Option<usize>,
pub version: bool,
}
Expand description
Lightweight snapshot testing framework
Fields§
§dir: PathBuf
test folder.
diff: bool
show diffs for each failing test.
save: bool
update expect files for displayed tests. Use the –only flag to save failing or missing tests.
dry_run: bool
print out the commands to be run for each test case. Warning: Will probably generate a lot of text unless used with –include or –exclude
verbose: bool
enable verbose printing
post_filter: Option<OnlyOpt>
filter out the reported test results based on test status (“pass”, “fail”, “miss”) or a regex for the test file path. Applied after running the tests.
exclude_filter: Option<String>
exclude matching tests using a regex on “
include_filter: Option<String>
include matching tests using a regex on “
jobs_limit: Option<usize>
limit the number of jobs to run in parallel. Defaults to number of logical cpus.
max_futures: Option<usize>
maximum number of features that can be created for concurrent processing. Use a lower number if runt gives the “too many file handles” error. Defaults to 50.
version: bool
print the version of runt