Open
Description
Main tracking issue: #7040
Problem
I just spent a lot longer than I'm willing to admit trying to work out why my doctests were not running. After working out I'd done everything correctly I finally tried --verbose
and found the warning about cross-compilation not being supported.
cargo test
completes successfully and I've not even known that the doctests have been skipped for months! Why is this warning hidden behind the verbose flag?
Steps
Create a src file with failing doc tests:
lib.rs
/// ```
/// panic("something')
/// ```
pub fn my_function() { }
Ensure you're building for another target. For me, this was on an M1 mac with the following .cargo/config
to make this a cross platform build:
[build]
target = "x86_64-apple-darwin"
Run cargo test --doc
Results in no output after the build output.
Version
cargo 1.69.0