#[skip]
Expand description
Will skip running the code it is applied on. You can use it to skip tests that aren’t working
correctly or that you don’t want to run for some reason. There are no checks to make sure it’s
applied to a #[test]
or mod. It will remove whatever it is applied to from the final AST.
#[cfg(test)]
use test_env_helpers::*;
#[cfg(test)]
mod my_tests{
#[skip]
#[test]
fn broken_test(){panic!("I'm hella broke")}
#[skip]
mod broken_mod{
#[test]
fn i_will_not_be_run(){panic!("I get skipped too")}
}
#[test]
fn test_2(){}
#[test]
fn test_3(){}
}