Привет, ЛОР!
Зацени, какой проект я нашёл. Кажется, Rust движется в нужном направлении!
https://github.com/Gankra/cargo-mommy
Для Ъ. Теперь можно делать вот так:
$ cargo mommy test
Finished test [unoptimized + debuginfo] target(s) in 0.00s
Running unittests src\main.rs (target\debug\deps\cargo_mommy-3804b5c850d46137.exe)
running 1 test
test test ... FAILED
failures:
---- test stdout ----
thread 'test' panicked at 'oops!!', src\main.rs:26:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
failures:
test
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
error: test failed, to rerun pass `--bin cargo-mommy`
mommy knows her little girl can do better~ ❤️