Is there a way to order tests? Or rather, to add some dependency rules to them?
I have a library which has some low level functions, "mid-level" and then the high level functions (the public interfaces). There's no need to run the mid-level tests if the low-level tests haven't passed, and there's no need to run the high-level tests if the mid-level tests haven't passed.
This is not at all important, it's just something I'm randomly curious about.
Additionally, if you're using features they way @prataprc suggested, you can apply the attribute to an entire file by putting #![cfg(feature = "low_level")] at the top.