[Kansas-general] test suite for 0.0.5

Daniel Berger djberg96 at yahoo.com
Sat May 1 13:58:54 EDT 2004


Hi Kirk,

I noticed that you're using a shell script,
runtests.sh, to run all the test scripts.  The problem
is....I don't do bash on Win32. :)

So, I recommend replacing that with this simple (cross
platform) script:

###################################
# tc_all.rb
#
# Runs all test cases for Kansas
###################################
if File.basename(Dir.pwd) == "tests"
   $:.unshift Dir.pwd
   $:.unshift ".."
end

require "TC_DeleteData"
require "TC_InsertData"
require "TC_NewWithDBH"
require "TC_NewWithoutDBH"
require "TC_SelectData"
require "TC_Transactions"
require "TC_UpdateData"

Then just run "ruby tc_all.rb".  Of course, I don't
have MySQL installed on this thing so it failed
utterly. ;)

That brings me to another point.  Could we use
something like Test-Object-Mock to simulate a database
table or something instead of requiring MySQL?  I
think this might be better overall because then you
wouldn't have to worry about vendor specific issues
any more.

Regards,

Dan


	
		
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 


More information about the Kansas-general mailing list