Is it possible to programmatically skip some tests based on runtime information? For example, I would like to cargo testgive out something like
test my_test ... skipped
instead
test my_test ... ok
when cond()evaluated to falsein the following test:
#[test]
fn my_test() {
    if !cond() {
        
        return;
    }
    
}
In other words, I'm looking for an alternative to Rust unittest.skipTest()in Python ( more info ).
source
share