Testing 货物测试不显示任何输出,也不显示所有测试

Testing 货物测试不显示任何输出,也不显示所有测试,testing,rust,rust-cargo,Testing,Rust,Rust Cargo,运行cargo test不会显示所有4个测试,也不会显示我运行的任何测试的任何输出。 我有4个测试: test common::tests::test_workingdays test documents::tests::create_docs test emailer::tests::test_attachments test emailer::tests::test_format_attachments $cargo测试 编译te pm analytics v0.1.0(/home

运行
cargo test
不会显示所有4个测试,也不会显示我运行的任何测试的任何输出。 我有4个测试:

test common::tests::test_workingdays 
test documents::tests::create_docs 
test emailer::tests::test_attachments 
test emailer::tests::test_format_attachments 
$cargo测试
编译te pm analytics v0.1.0(/home/charlie/thoughtextpress/rust/te pm analytics)
在2.44秒内完成测试[未优化+调试信息]目标
运行target/debug/deps/main-253a09bf91ed177c
运行4个测试
测试常用::测试::测试工作日。。。好啊
测试电子邮件发送程序::测试::测试附件。。。失败
错误:测试失败,无法重新运行传递'--bin main'

它只运行了其中的两个,甚至没有告诉我失败的原因。

所以发生这种情况的原因是我做的4个测试中的一个

test common::tests::test_workingdays 
test documents::tests::create_docs 
test emailer::tests::test_attachments 
test emailer::tests::test_format_attachments 
test\u附件
test\u格式附件
都失败了,但是
test\u格式附件
在它测试的函数中有一个
std::process::exit(1)
条件,因此它在测试能够返回之前终止了进程