Skip to content

Commit

Permalink
add test runner for all
Browse files Browse the repository at this point in the history
  • Loading branch information
rdp committed Apr 18, 2009
1 parent e14c8b9 commit 021cd36
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 0 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
9 changes: 9 additions & 0 deletions test/test_all.rb
@@ -0,0 +1,9 @@
# I suppose if all the tests don't blow up, that probably means pass
require 'mysqlplus'
for file in Dir.glob('*_test.rb') do
puts 'testing ' + file + "\n\n\n\n\n"
# fork so we don't run out of connections to the mysql db, as few tests ever clean up their old processes
pid = Process.fork { load file }
Process.wait(pid)
end
puts 'successful'
File renamed without changes.

0 comments on commit 021cd36

Please sign in to comment.