I realize this is more of an Eclipse problem than a Watir problem, but I know 
some of you use Eclipse and I though maybe you have figured out the solution 
already.

The problem is that I could not get Test Unit Runner in Eclipse to work for my 
Ruby tests.  It appears the problem is that the directory where my test files 
reside in my project is not in the loadpath.  Whenever I tried to run the tests 
with the TU runner in Eclipse, it gave me a load error, saying that it could 
not find the file I was trying to run.

I looked all over trying to find how to add a path to the Eclipse load path, 
but had no success.  I tried Googling Eclipse and Ruby and Test Unit and did 
not turn up anything.

I did get it to work with a real kluge.  I put a file, in the existing 
loadpath, with the same name as the file I was trying to run.  The file 
contains a require statement with the full path to the file I want to run.  
This works for now, but I would like to have a better solution than putting a 
new file for each project in the existing load path.

Does anybody know how to add the the loadpath or come up with a better soultion?

Jim Matthews
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to