Attribute Macro test_with::runtime_tcp

source ·
#[runtime_tcp]
Expand description

Run test case when the example running and socket connected

 // write as example in exmaples/*rs
 test_with::runner!(tcp);
 #[test_with::module]
 mod tcp {
     // Google DNS is online
     #[test_with::runtime_tcp(8.8.8.8:53)]
     fn test_works_with_DNS_server() {
         assert!(true);
     }
 }