Attribute Macro test_with::runtime_icmp

source ยท
#[runtime_icmp]
Expand description

Run test case when the example running and the server online. Please make sure the role of test case runner have capability to open socket

 // write as example in examples/*rs
 test_with::runner!(icmp);
 #[test_with::module]
 mod icmp {
     // 193.194.195.196 is offline
     #[test_with::runtime_icmp(193.194.195.196)]
     fn test_ignored_with_non_existing_host() {
         panic!("should be ignored with non existing host")
     }
 }