I'm making a big refactor. When attempting to clean up my tests, cargo test appears to go file by file, alphabetically when compiling the tests. As soon as one #[test] has a compile error, the build is aborted.
#[test]s following the failure do not get compiled.
- Subsequent compile errors in the
#[test] that fails to build are not reported.
This makes finding errors very tedious.
Editing to provide concrete case:
https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=c040edc58966f3fcc662002e84ec57aa gives up after the first test but should continue to report errors
I'm making a big refactor. When attempting to clean up my tests,
cargo testappears to go file by file, alphabetically when compiling the tests. As soon as one#[test]has a compile error, the build is aborted.#[test]s following the failure do not get compiled.#[test]that fails to build are not reported.This makes finding errors very tedious.
Editing to provide concrete case:
https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=c040edc58966f3fcc662002e84ec57aa gives up after the first test but should continue to report errors