test_with

Attribute Macro runtime_file

source
#[runtime_file]
Expand description

Run test case when the example running and the file exist.

 // write as example in examples/*rs
 test_with::runner!(file);
 #[test_with::module]
 mod file {
     #[test_with::runtime_file(/etc/hostname)]
     fn test_works() {
         assert!(true);
     }
 }