'What flags to I need to use for test methods?

I am new to Rust and I am struggling decrypting existing code. In particular, a method is tagged with:

#[cfg(any(test, feature = "test-helpers"))]

So when I try to run cargo test, it's not available and I get the message:

^^^^ method not found in ...

How do I specify that I want to test with these methods to cargo?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source