Attribute Macro test_with::module

source ·
#[module]
Expand description

Help each function with #[test_with::runtime_*] in the module can register to run

 // example/run-test.rs

 test_with::runner!(module1, module2);
 #[test_with::module]
 mod module1 {
     #[test_with::runtime_env(PWD)]
     fn test_works() {
         assert!(true);
     }
 }

 #[test_with::module]
 mod module2 {
     #[test_with::runtime_env(PWD)]
     fn test_works() {
         assert!(true);
     }
 }