Attribute Macro test_each::path

source ·
#[path]
Expand description

Generate a series of tests that receive file paths, based on the result of a glob pattern.

This includes any matched directories.

Usage

#[test_each::path("data/*")]
fn test_paths(path: PathBuf) {
    // test contents
}