Damaris Fuentes
2010-May-03 12:15 UTC
"rake TEST=test/unit/whatever_test.rb" is executed 3 times.
Hi you all, I execute "rake TEST= test/unit/whatever_test.rb, and it is executed 3 times. That it, the output is something like: c:/ruby .................. "test/unit/whatever_test.rb" Loaded suite ..... Started F Finished in 0.8 ... 1 tests, 1 assertions, 1 failures, 0 errors c:/ruby .................. "test/unit/whatever_test.rb" Loaded suite ..... Started F Finished in 0.8 ... 1 tests, 1 assertions, 1 failures, 0 errors c:/ruby .................. "test/unit/whatever_test.rb" Loaded suite ..... Started F Finished in 0.8 ... 1 tests, 1 assertions, 1 failures, 0 errors And at the end: Errors running test:units, test:functionals and test:integration! Is this a normal behaviour? The test is the default one when you create a model and I''m using Ruby 1.8.6. and Rails 2.1.2. rake version is 0.8.6 -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Frederick Cheung
2010-May-03 13:20 UTC
Re: "rake TEST=test/unit/whatever_test.rb" is executed 3 times.
On May 3, 1:15 pm, Damaris Fuentes <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Hi you all, > > Is this a normal behaviour? > The test is the default one when you create a model and I''m using Ruby > 1.8.6. and Rails 2.1.2. rake version is 0.8.6If you want to run just one test I''d do ruby -Itest test/unit/ foo_test.rb I think the issue is that the default task in a rails project runs 3 sub tasks: test:units, test:functionals and test:integration. Each of these tasks then pickup the TEST environment variable you''ve set Fred> -- > Posted viahttp://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. > For more options, visit this group athttp://groups.google.com/group/rubyonrails-talk?hl=en.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Peter Hickman
2010-May-03 20:11 UTC
Re: Re: "rake TEST=test/unit/whatever_test.rb" is executed 3 times.
Or you could try rake test:units TEST=test/unit/whatever_test.rb if it is a unit test for example -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Damaris Fuentes
2010-May-13 16:18 UTC
Re: Re: "rake TEST=test/unit/whatever_test.rb" is executed 3 times.
Ok, thanks, that works. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.