for example, i want to run only one single test for edge. what command should i use?. the test i want to run is at the path: "/railties/test/ application/console_test.rb" any idea? Thank you. And, I am actually trying to patch https://rails.lighthouseapp.com/projects/8994/tickets/3822-reload-doesnt-reload . Is the ticket valid? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
On railties/test directory do ruby application/console_test.rb On Sat, Feb 13, 2010 at 8:44 PM, siong1987 <siong1987@gmail.com> wrote:> for example, i want to run only one single test for edge. what command > should i use?. the test i want to run is at the path: "/railties/test/ > application/console_test.rb" > > any idea? Thank you. > > And, I am actually trying to patch > https://rails.lighthouseapp.com/projects/8994/tickets/3822-reload-doesnt-reload > . Is the ticket valid? > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. > To post to this group, send email to rubyonrails-core@googlegroups.com. > To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
I don''t know about any Rake tasks here, but you can just just use ruby. Run a test case as in console_test.rb with: ruby -Itest -I../activesupport/lib test/application/console_test.rb With the -n option you can additionally pick particular tests from that test case. E.g. to run the first test: ruby -Itest -I../activesupport/lib test/application/console_test.rb -n test_app_method_should_return_integration_session Or run tests that match "integration_session": ruby -Itest -I../activesupport/lib test/application/console_test.rb -n /integration_session/ hth On Feb 13, 2010, at 11:44 PM, siong1987 wrote:> for example, i want to run only one single test for edge. what command > should i use?. the test i want to run is at the path: "/railties/test/ > application/console_test.rb" > > any idea? Thank you. > > And, I am actually trying to patch > https://rails.lighthouseapp.com/projects/8994/tickets/3822-reload-doesnt-reload > . Is the ticket valid? > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. > To post to this group, send email to rubyonrails-core@googlegroups.com. > To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
I think I''ll add this to docrails soon, as Contributor 101 :P Sent from my iPhone On 14 ก.พ. 2553, at 6:12, Sven Fuchs <svenfuchs@artweb-design.de> wrote:> I don''t know about any Rake tasks here, but you can just just use > ruby. > > Run a test case as in console_test.rb with: > > ruby -Itest -I../activesupport/lib test/application/console_test.rb > > With the -n option you can additionally pick particular tests from > that test case. E.g. to run the first test: > > ruby -Itest -I../activesupport/lib test/application/console_test.rb > -n test_app_method_should_return_integration_session > > Or run tests that match "integration_session": > > ruby -Itest -I../activesupport/lib test/application/console_test.rb > -n /integration_session/ > > hth > > > On Feb 13, 2010, at 11:44 PM, siong1987 wrote: > >> for example, i want to run only one single test for edge. what >> command >> should i use?. the test i want to run is at the path: "/railties/ >> test/ >> application/console_test.rb" >> >> any idea? Thank you. >> >> And, I am actually trying to patch >> https://rails.lighthouseapp.com/projects/8994/tickets/3822-reload-doesnt-reload >> . Is the ticket valid? >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Ruby on Rails: Core" group. >> To post to this group, send email to rubyonrails-core@googlegroups.com >> . >> To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com >> . >> For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en >> . >> > > -- > You received this message because you are subscribed to the Google > Groups "Ruby on Rails: Core" group. > To post to this group, send email to rubyonrails- > core@googlegroups.com. > To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com > . > For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en > . >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
+1. Adding that into docrails will help a lot. Thanks. On Sat, Feb 13, 2010 at 5:23 PM, Prem Sichanugrist <sikandsak@gmail.com>wrote:> I think I''ll add this to docrails soon, as Contributor 101 :P > > Sent from my iPhone > > On 14 ก.พ. 2553, at 6:12, Sven Fuchs <svenfuchs@artweb-design.de> > wrote: > > > I don''t know about any Rake tasks here, but you can just just use > > ruby. > > > > Run a test case as in console_test.rb with: > > > > ruby -Itest -I../activesupport/lib test/application/console_test.rb > > > > With the -n option you can additionally pick particular tests from > > that test case. E.g. to run the first test: > > > > ruby -Itest -I../activesupport/lib test/application/console_test.rb > > -n test_app_method_should_return_integration_session > > > > Or run tests that match "integration_session": > > > > ruby -Itest -I../activesupport/lib test/application/console_test.rb > > -n /integration_session/ > > > > hth > > > > > > On Feb 13, 2010, at 11:44 PM, siong1987 wrote: > > > >> for example, i want to run only one single test for edge. what > >> command > >> should i use?. the test i want to run is at the path: "/railties/ > >> test/ > >> application/console_test.rb" > >> > >> any idea? Thank you. > >> > >> And, I am actually trying to patch > >> > https://rails.lighthouseapp.com/projects/8994/tickets/3822-reload-doesnt-reload > >> . Is the ticket valid? > >> > >> -- > >> You received this message because you are subscribed to the Google > >> Groups "Ruby on Rails: Core" group. > >> To post to this group, send email to rubyonrails-core@googlegroups.com > >> . > >> To unsubscribe from this group, send email to > rubyonrails-core+unsubscribe@googlegroups.com<rubyonrails-core%2Bunsubscribe@googlegroups.com> > >> . > >> For more options, visit this group at > http://groups.google.com/group/rubyonrails-core?hl=en > >> . > >> > > > > -- > > You received this message because you are subscribed to the Google > > Groups "Ruby on Rails: Core" group. > > To post to this group, send email to rubyonrails- > > core@googlegroups.com. > > To unsubscribe from this group, send email to > rubyonrails-core+unsubscribe@googlegroups.com<rubyonrails-core%2Bunsubscribe@googlegroups.com> > > . > > For more options, visit this group at > http://groups.google.com/group/rubyonrails-core?hl=en > > . > > > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Core" group. > To post to this group, send email to rubyonrails-core@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-core+unsubscribe@googlegroups.com<rubyonrails-core%2Bunsubscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-core?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Although this certainly is just a temporary solution or workaround. Btw, I can see why Railties test cases don''t add a particular ActiveSupport lib path to the load path (people might want to use a different version for testing). But why don''t they add their own local test/ path? On Feb 14, 2010, at 10:07 AM, Teng Siong Ong wrote:> +1. Adding that into docrails will help a lot. > > Thanks. > > On Sat, Feb 13, 2010 at 5:23 PM, Prem Sichanugrist <sikandsak@gmail.com> wrote: > I think I''ll add this to docrails soon, as Contributor 101 :P > > Sent from my iPhone > > On 14 ก.พ. 2553, at 6:12, Sven Fuchs <svenfuchs@artweb-design.de> > wrote: > > > I don''t know about any Rake tasks here, but you can just just use > > ruby. > > > > Run a test case as in console_test.rb with: > > > > ruby -Itest -I../activesupport/lib test/application/console_test.rb > > > > With the -n option you can additionally pick particular tests from > > that test case. E.g. to run the first test: > > > > ruby -Itest -I../activesupport/lib test/application/console_test.rb > > -n test_app_method_should_return_integration_session > > > > Or run tests that match "integration_session": > > > > ruby -Itest -I../activesupport/lib test/application/console_test.rb > > -n /integration_session/ > > > > hth > > > > > > On Feb 13, 2010, at 11:44 PM, siong1987 wrote: > > > >> for example, i want to run only one single test for edge. what > >> command > >> should i use?. the test i want to run is at the path: "/railties/ > >> test/ > >> application/console_test.rb" > >> > >> any idea? Thank you. > >> > >> And, I am actually trying to patch > >> https://rails.lighthouseapp.com/projects/8994/tickets/3822-reload-doesnt-reload > >> . Is the ticket valid? > >> > >> -- > >> You received this message because you are subscribed to the Google > >> Groups "Ruby on Rails: Core" group. > >> To post to this group, send email to rubyonrails-core@googlegroups.com > >> . > >> To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com > >> . > >> For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en > >> . > >> > > > > -- > > You received this message because you are subscribed to the Google > > Groups "Ruby on Rails: Core" group. > > To post to this group, send email to rubyonrails- > > core@googlegroups.com. > > To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com > > . > > For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en > > . > > > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. > To post to this group, send email to rubyonrails-core@googlegroups.com. > To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en. > > > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. > To post to this group, send email to rubyonrails-core@googlegroups.com. > To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.