test_with

Attribute Macro user

source
#[user]
Expand description

Run test case when runner is specific user

#[cfg(test)]
mod tests {

    // Only works with user
    #[test_with::user(spider)]
    #[test]
    fn test_ignored() {
        panic!("should be ignored")
    }
}