test_with

Attribute Macro runtime_no_env

source
#[runtime_no_env]
Expand description

Ignore 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_no_env(NOT_EXIST)]
 fn test_works() {
     assert!(true);
     }
 }