From: Chris McMahon Date: 2006-10-25T07:05:15+09:00 Subject: run test scripts concurrently I've been futzing with this for some time and I am out of ideas. I have a number of files named "test_something.rb" that each contain one test like so: class TC_foo < Test::Unit::TestCase def test_foo #do some stuff #assert some things end end I have a little harness that runs them one after another like so: topdir = File.join(File.dirname(__FILE__)) Dir.chdir topdir do tests = Dir["test*"] tests.each{|x| require x} end But I would like to be able to run each individual script file in it's own process simultaneously. I have been fooling around with Thread.new, system(), exec(), and it seems that no matter what I try, each script file has to finish before the next one will run. Any suggestions for running all of my test files at the same time from one controller/harness?