小弧光的博客

公众号:小弧光黑板报

导航

rust 测试如何打印 println 输出结果

cargo test -- --nocapture
or
rustc --test main.rs; ./main
or (my favorite)
cargo watch “test -- --nocapture”

https://medium.com/@ericdreichert/how-to-print-during-rust-tests-619bdc7ccebc

posted on 2023-05-29 16:47  小弧光  阅读(187)  评论(0编辑  收藏  举报