Organizationally my files are a mess. Some of my files contain only
tests,
some have tests and code, and some have code with tests wrapped with an
if FILE == $0 … end guard . Some files require other rb files and
the
files are scattered over a handful of directories.
Organizationally my files are a mess. Some of my files contain only tests,
some have tests and code, and some have code with tests wrapped with an if FILE == $0 … end guard . Some files require other rb files and the
files are scattered over a handful of directories.
Is there a good way to run all my tests at once?
I recommend changing all your test code to use Test::Unit.
If you
name all those source files following the convention test_*.rb
put the code being tested in a directory named lib
put the test code in a sibling directory named test
then you can run all your tests from the lib directory with
testrb …/test
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.