Attribute Macro test_with::runtime_icmp
source · #[runtime_icmp]Expand description
Run test case when the server online. Please make sure the role of test case runner have capability to open socket
// write as example in exmaples/*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")
}
}