[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Running tests via rake. Plea for fix.

Tobias Luetke

1/28/2005 2:52:00 PM

Currently when you are running tests with rake you will run in all sorts
of problems with the 1.8.2 release.

Usually rake will just freeze and eat up all the available resources
in the system.

The fix is documented here:
http://weblog.rubyonrails.com/archives/2005/01/15/having-problems-running-tests-...

I had to apply this fix to 6 different computer now and its really getting old.

I know that rake is not at fault here but its the main area of concern
since rails relies on rake to run the unit tests.

Can we add the fix to rake using open classes in the meantime?

For everyone who makes it into the rails irc channel or onto the
mailing list to ask what is amiss, 10 or more people just give up.

--
Tobi
http://www.h... - Open source book authoring
http://blog.le... - Technical weblog


6 Answers

Jim Weirich

1/28/2005 6:06:00 PM

0


Tobias Luetke said:
> Currently when you are running tests with rake you will run in all sorts
> of problems with the 1.8.2 release.
>
> Usually rake will just freeze and eat up all the available resources
> in the system.
>
> The fix is documented here:
> http://weblog.rubyonrails.com/archives/2005/01/15/having-problems-running-tests-...
>
> I had to apply this fix to 6 different computer now and its really getting
> old.
>
> I know that rake is not at fault here but its the main area of concern
> since rails relies on rake to run the unit tests.
>
> Can we add the fix to rake using open classes in the meantime?
>
> For everyone who makes it into the rails irc channel or onto the
> mailing list to ask what is amiss, 10 or more people just give up.

Sorry, I wasn't really aware there were continuing issues with rake and
rails testing. I should be paying more attention!

So, is this an issue with using the testrb script to run the tests, or
something deeper? I've been using testrb to run my unit tests in rake
with no problem ... is the problem specific to rails?

I see the patch, but it gives little information on the essence of the
problem. I don't have time at the moment to dive deep into this problem,
but will make some time this evening. Once a good fix is identified, we
can turn around an updated version of rake fairly quickly.

Feel free to email me off list with more details if needed.

--
-- Jim Weirich jim@weirichhouse.org http://onest...
-----------------------------------------------------------------
"Beware of bugs in the above code; I have only proved it correct,
not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)



Curt Hibbs

1/28/2005 6:21:00 PM

0

Jim Weirich wrote:
>
> I see the patch, but it gives little information on the essence of the
> problem. I don't have time at the moment to dive deep into this problem,
> but will make some time this evening. Once a good fix is identified, we
> can turn around an updated version of rake fairly quickly.
>
> Feel free to email me off list with more details if needed.

Can you please keep me in the loop for the fix? I want to make a new release
of the One-Click Installer for Windows that includes the fix.

Thanks,
Curt



Jim Weirich

1/29/2005 1:23:00 PM

0

On Friday 28 January 2005 09:51 am, Tobias Luetke wrote:
> Currently when you are running tests with rake you will run in all sorts
> of problems with the 1.8.2 release.
>
> Usually rake will just freeze and eat up all the available resources
> in the system.
>
> The fix is documented here:
> http://weblog.rubyonrails.com/archives/2005/01/15/having-problems...
>ests-under-182/

I must be missing something. I just created a new rails project, added a
model (unit) test and a funtional test and could not reproduce the problem.
I am running:

ruby 1.8.2
rake 0.4.15
rails 0.9.5
actionmailer 0.6.1
actionpack 1.4.0
activerecord 1.6.0

All on debian linux. Is the problem only on windows?
Thanks for any help.

--
-- Jim Weirich jim@weirichhouse.org http://onest...
-----------------------------------------------------------------
"Beware of bugs in the above code; I have only proved it correct,
not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)


Jamis Buck

1/29/2005 2:42:00 PM

0

On 22:23 Sat 29 Jan , Jim Weirich wrote:
> On Friday 28 January 2005 09:51 am, Tobias Luetke wrote:
> > Currently when you are running tests with rake you will run in all sorts
> > of problems with the 1.8.2 release.
> >
> > Usually rake will just freeze and eat up all the available resources
> > in the system.
> >
> > The fix is documented here:
> > http://weblog.rubyonrails.com/archives/2005/01/15/having-problems...
> >ests-under-182/
>
> I must be missing something. I just created a new rails project, added a
> model (unit) test and a funtional test and could not reproduce the problem.
> I am running:
>
> ruby 1.8.2
> rake 0.4.15
> rails 0.9.5
> actionmailer 0.6.1
> actionpack 1.4.0
> activerecord 1.6.0
>
> All on debian linux. Is the problem only on windows?
> Thanks for any help.

I confess I haven't been following this thread, so I don't know what
problems the OP was reporting. But I do know that I, myself (on
gentoo) have problems using rake to run tests on non-rails apps. They
seem to be related to the testrb script, but I haven't had time lately
to track it down.

The problem-child that comes to mind is my net-ssh project. Try
running "rake test_all". This used to work. It seems to do with testrb
not liking custom parameters being passed to the test script itself.
(I know I could work around this with environment variables, but like
I said, this *used* to work, and I haven't really had time to "fix"
it.)

It seems like there was at least one or two other issues I was running
into, but either I can't remember what they were, or they are already
fixed. :)

- Jamis

>
> --
> -- Jim Weirich jim@weirichhouse.org http://onest...
> -----------------------------------------------------------------
> "Beware of bugs in the above code; I have only proved it correct,
> not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)
>
>

--
Jamis Buck
jamis_buck@byu.edu
http://jamis.jam...
------------------------------
"I am Victor of Borge. You will be assimil-nine-ed."



Nicklas

8/29/2008 3:31:00 AM

0

On Thu, 12 Jul 2007 12:47:14 -0600, Click@Knicklas.com
wrote:

>On Thu, 12 Jul 2007 08:34:01 -0700, pyjamarama
><pyjamarama76@yahoo.com> wrote:


>There's no response to the question:
>
>DO YOU HIRE BLACKS, Poopy?




>=============================================================================================

On Fri, 11 Apr 2008 08:49:05 -0700 (PDT), Rightwinghank <rightwinghank@hotmail.com> wrote:

>> On Thu, 10 Apr 2008 09:08:15 -0700 (PDT), pyjamarama

>Its still a free country...and if someone doesnt want to hire a nigger
>like yourself forinstance...because they dont want a smelly lazy stealing stupid semi
>human working for them....more power to em.
>
>Now..if you have a federal contract...then you MUST have 10 percent
>minorites working for you...

>THAT is why there are so many niggas employed in Washington DC in the
>Goverment.

>Otherwise...we could use trained monkeys to do the same and save some
>bucks.
>
>love ya
>hank

Nicklas

9/26/2008 2:49:00 PM

0

On Thu, 12 Jul 2007 12:47:14 -0600, Click@Knicklas.com
wrote:

>On Thu, 12 Jul 2007 08:34:01 -0700, pyjamarama
><pyjamarama76@yahoo.com> wrote:
>
>>On Jul 12, 8:10 am, C...@Knicklas.com wrote:
>>> On Wed, 11 Jul 2007 16:33:11 -0700, pyjamarama
>>>
>>> <pyjamaram...@yahoo.com> wrote:
>>>
>>> >> >See Roselles get his "don't hire blacks" LIE shoved straight up his
>>> >> >ass, again <snicker>:
>>>
>>> >> There you go again, POOPY
>>>
>>> >Yup -- Here I go again BUSTING your dumb fucking ass for LYING:
>>>
>>> Lying about what?
>>
>>'Bout this, you whipped prick:
>
>There's no response to the question:
>
>DO YOU HIRE BLACKS, Poopy?