Thank you very much, Bill.
The idea is to name the results file for each script in a test set by
the name of the script.
All scripts use Test::Unit class and have the same setup method.
If I run system(ruby test1.rb), in setup I read the name of the
script and create a results file called
The command you listed, means you are running a script. Either you already
know which script you're running or not. If you're running scripts from a
directory then checkout Ruby's Directory and File/FileUtils class.
I'm not quite sure what you're trying to solve.
Charley Baker
blog:
$0 contains the filename being executed, so that should do what you want.
For more info on this kind of thing, this page is pretty useful:
http://www.zenspider.com/Languages/Ruby/QuickRef.html
The Ruby O'Reilly book is also great as a reference for this sort of stuff.
Thanks
Bill
On Tue,