create a file called "run_tests_forever.rb with:
while true
puts "running tests again..."
`rake test`
end
(note: those are backticks to make a system call)
then run with:
ruby run_tests_forever.rb
:)
(or your equivalent requirements...)