Attribute Macro test_with::runtime_env

source ·
#[runtime_env]
Expand description

Run test case when the example running and the environment variable is set.

 // write as example in examples/*rs
 test_with::runner!(env);
 #[test_with::module]
 mod env {
 #[test_with::runtime_env(PWD)]
 fn test_works() {
     assert!(true);
     }
 }