你如何使用测试单元?

How do you use test-unit?

我的 test/run_test.rb 与文档中的完全一样 here。我的 test/spec.rb 只是 puts 'hello',但 运行 ruby test/run_test.rb 什么也没有输出。

我找不到关于测试单元的任何其他文档。

test/spec.rb 重命名为 test/foo_test.rb,因为您的测试文件需要以 _test.rb 结尾。