`#[cfg(test)]` seems to be best practise
#[cfg(test)]seems to be best practise