Hi I am using rcov to generate code coverage. But I don''t know how to write cases for that... I have installed rcov gem and and execute rcov test/*.rb command. It shows me some code coverage in files. Can anyone help me by giving example that how to write test cases and where to write... Thanks in advance... -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Brijesh Shah wrote:> Hi I am using rcov to generate code coverage. But I don''t know how to > write cases for that... > > I have installed rcov gem and and execute rcov test/*.rb command. It > shows me some code coverage in files. > > Can anyone help me by giving example that how to write test cases and > where to write... > > Thanks in advance...http://thelucid.com/2007/08/24/using-rcov-to-measure-the-test-coverage-of-rails-plugins/ http://www.ultrasaurus.com/sarahblog/2008/12/rails-2-day-4-rcov-and-more-behavior-driven-development/ -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Dharmdip Rathod wrote:> Brijesh Shah wrote: >> Hi I am using rcov to generate code coverage. But I don''t know how to >> write cases for that... >> >> I have installed rcov gem and and execute rcov test/*.rb command. It >> shows me some code coverage in files. >> >> Can anyone help me by giving example that how to write test cases and >> where to write... >> >> Thanks in advance... > > http://thelucid.com/2007/08/24/using-rcov-to-measure-the-test-coverage-of-rails-plugins/ > brijesh> http://www.ultrasaurus.com/sarahblog/2008/12/rails-2-day-4-rcov-and-more-behavior-driven-development/Thanks I know this.... but I am not getting how to write test cases which will related to our definition.. lets take example: test cases for create method in user model which check validations ... -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
implementation of http://morshed-alam.blogspot.com/2008/09/implementation-of-cruisecontrolrb-and.html -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
You did not get my point.... I am not getting how to create test cases in test files...like in test/unit/.rb files... http://pastie.org/378498 require File.dirname(__FILE__) + ''/test_helper'' class UserTest < ActiveSupport::TestCase # Replace this with your real tests. def test_should_create_user ????? end end end what should be write in particular definition and how it will work? so i can generate other test cases.. Thanks -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
will call u -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---