Attribute Macro test_with::http [−][src]
#[http]Expand description
Run test case when the http service exist.
#[cfg(test)]
mod tests {
// http service exists
#[test_with::http(httpbin.org)]
fn test_works() {
assert!(true);
}
// There is no not.exist.com
#[test_with::http(not.exist.com)]
fn test_ignored() {
panic!("should be ignored")
}
}