Search code examples
rubytestunit

How do you use test-unit?


My test/run_test.rb is exactly as the docs have it here. My test/spec.rb has simply puts 'hello', yet running ruby test/run_test.rb outputs nothing at all.

I can't find any other documentation on test-unit.


Solution

  • Rename test/spec.rb to test/foo_test.rb, as your test files need to end with _test.rb.