生锈测试货物测试 - verbose不显示ouptut?
如果我创建该功能
#[test]
fn foo () {
dbg!("BAR");
println!("BAZ");
assert!(true);
}
,并且运行货物测试-V
或货物测试-Verbose
我可以确认测试运行,但没有显示输出。输出中不存在“ bar”和“ baz”一词。
当我阅读货物测试-HELP
时,我看到的选项与货物-HELP
:IT文档a -vv
选项。但是我看不出与货物 - Verbose Test -VV
,NOR 货物测试-VV
的区别。
我正在使用货物1.63.0夜晚(4D92F07F3 2022-06-09)
If I create the function
#[test]
fn foo () {
dbg!("BAR");
println!("BAZ");
assert!(true);
}
And I run cargo test -v
or cargo test --verbose
I can confirm the test ran, but no output is shown. The words "BAR" and "BAZ" do not exist in the output.
When I read cargo test --help
, I see different options than in cargo --help
: it documents a -vv
option. But I don't see a difference with cargo --verbose test -vv
, nor cargo test -vv
.
I'm using cargo 1.63.0-nightly (4d92f07f3 2022-06-09)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
- Nocapture
此处的正确调用是
文档,
我已经打开了 github上的问题#10777建议更改此行为
--nocapture
The right invocation here is
From the docs,
I've opened Issue #10777 on GitHub to suggest changing this behavior