#[path]Expand description
Run test case when the path(file or folder) exist.
#[cfg(test)]
mod tests {
// etc exists
#[test_with::path(/etc)]
fn test_works() {
assert!(true);
}
// nothing does not exist
#[test_with::path(/nothing)]
fn test_ignored() {
panic!("should be ignored")
}
// etc and tmp exist
#[test_with::path(/etc, /tmp)]
fn test_works_too() {
assert!(true);
}
}