Question for all the @rustlang hackers out there -- Do you prefer #[cfg(test)] stuff in your crate, or code in the tests/*.rs files for testing the majority of your code when your library is almost entirely public API?
13
2
1
14
I think that's a good way of thinking about it yes. Right now all my testing is doctests because I just wrote those while writing the crate - but I feel I ought to have more formal testing too.
Jan 20, 2020 ยท 10:35 PM UTC
1
1

