On 2/7/06,
Roy Sin <
[EMAIL PROTECTED]> wrote:
2) If a PC has Ruby/Watir installed but don't have eclipse
ide ,is there a way to make my scripts into an executable
and the person running the scripts could just double click
on the file
First of all, they can just double click the
test.rb file and it will run. The only problem is that the output will appear in a temporary command window that will go away when the script is done.
But there you can get it to run in a nifty GUI if you run it with a command line argument.
In a cmd window you can do this:
test.rb --runner=t
You can also create a shortcut to your test and then edit the target in the properties to include this argument. Then when you double click on it, it will run in its GUI.
Target: C:\workspace\watir\unittests\div_test.rb --runner=t
Everybody should actually give this a try. It looks cool!
Another idea would be to put this in a batch file.
Bret
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general