I reinstalled Eclipse.  I installed:

    Eclipse    3.2.2
    RDT        0.9.0
    Subclipse    1.2.2

and it seems to work with the Eclipse Test::Unit runner.

I did do one major thing differently this time.  I used the default
work area that Eclipse wanted to use, I created my project under the
the default work area for Eclipse, and I created a new copy of each
of the .rb files under the project through Eclipse and copy and pasted
the contents of my original files in there.

Before, I created the project in a directory where I had already been 
working
and imported the .rb files I already had from the file system.  I did this
because I had read somewhere that this version of Eclipse was not as
demanding about you creating everything through it.  Hmmm, maybe not
but this seemed to work.  Maybe I did not have to do all this to get it to
work, but I was more interested in using Eclipse than debugging it.

Jim Matthews

----- Original Message ----- 
From: "Bret Pettichord" <[EMAIL PROTECTED]>
To: <wtr-general@rubyforge.org>
Sent: Wednesday, June 27, 2007 4:07 PM
Subject: Re: [Wtr-general] Problems with Test::Unit in Eclipse


> jim_matt wrote:
>> Either I don't get it, or I am not making myself clear.  I am running
>> Eclipse 3.2.2 and the latest version of RDT.
>>
>> I have statements in my files like the
>>
>> $: << File.expand_path(File.dirname(__FILE__))
>>
>> That is not the problem!  YOU HAVE TO BE ABLE TO OPEN A FILE BEFORE THE
>> ABOVE LINE WORKS!
>> When I try to run my top level suite file that requires all my other test
>> files from Test::Unit inside Eclipse, it cannot find the top level file. 
>> If
>> I run the top level suite file from Run Ruby, it finds the file and 
>> executes
>> it.
>>
>> The problem is that Test::Unit in Eclipse cannot find the first file to 
>> run
>> so it never gets a chance to execute the
>>
>> $: << File.expand_path(File.dirname(__FILE__))
>>
>> Jim
>>
> At this point it sounds like you need to reinstall Eclipse.
> _______________________________________________
> Wtr-general mailing list
> Wtr-general@rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-general 

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

Reply via email to