require 'test_name' for each test you want to run in your suite. This does work, but it can become a maintenance pain.When developing a Ruby application I generally put all my tests in a
Test folder or in folders that are descendants of Test. When I want to execute all the tests, I simply need to require all files that are in or below Test.require 'find'That's it. All files below
Find.find(File.dirname(__FILE__)) do |path|
Find.prune if path =~ /#{File.expand_path('.')}\/#{__FILE__}$/
require path.reverse.chomp(File.expand_path('.').reverse).chomp('/').reverse.chomp('.rb') if !File.directory?(path)
end
Test will be required and therefore executed.