Hello. I''ve seen http://teachmetocode.com/screencasts/rails-3-building-a-blog-part-1-test-setup-generators/. He use cucumber with rspec and capybara for tests. What do you think? I''m reading about cucumber but I don''t know anything about capybara. -- 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.
Capybara aims to simplify the process of integration testing Rack applications, such as Rails, Sinatra or Merb. It is agnostic about the driver running your tests and currently comes bundled with rack-test, Culerity, Celerity and Selenium support built in. env.js support is available as the capybara-envjs gem. *Capybara is built to work nicely with Cucumber. Its API is very similar to that of Webrat. It is inspired by and aims to replace Webrat as a DSL for interacting with a webapplication.* Check more here: http://github.com/jnicklas/capybara --- Edmond Software Developer | Baobab Health Trust (http://www.baobabhealth.org/) | Malawi Cell: +265 999 465 137 | +265 881 234 717 *"Many people doubt open source software and probably don’t realize that there is an alternative… which is just as good.." -- Kevin Scannell* 2010/9/23 Mauro <mrsanna1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> Hello. > I''ve seen > http://teachmetocode.com/screencasts/rails-3-building-a-blog-part-1-test-setup-generators/ > . > He use cucumber with rspec and capybara for tests. > What do you think? > I''m reading about cucumber but I don''t know anything about capybara. > > -- > 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://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.
Do you advise me to use cucumber for test? On 23 September 2010 11:32, Edmond Kachale <edmond.kachale-qPoFbzSWEfuuL8s4vL5bMA@public.gmane.org> wrote:> Capybara aims to simplify the process of integration testing Rack > applications, such as Rails, Sinatra or Merb. It is agnostic about the > driver running your tests and currently comes bundled with rack-test, > Culerity, Celerity and Selenium support built in. env.js support is > available as the capybara-envjs gem. > > Capybara is built to work nicely with Cucumber. Its API is very similar to > that of Webrat. It is inspired by and aims to replace Webrat as a DSL for > interacting with a webapplication. > > Check more here: http://github.com/jnicklas/capybara > > --- > Edmond > Software Developer | Baobab Health Trust (http://www.baobabhealth.org/) | > Malawi > > Cell: +265 999 465 137 | +265 881 234 717 > > "Many people doubt open source software and probably don’t realize that > there is an alternative… which is just as good.." -- Kevin Scannell > > > > 2010/9/23 Mauro <mrsanna1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >> >> Hello. >> I''ve seen >> http://teachmetocode.com/screencasts/rails-3-building-a-blog-part-1-test-setup-generators/. >> He use cucumber with rspec and capybara for tests. >> What do you think? >> I''m reading about cucumber but I don''t know anything about capybara. >> >> -- >> 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. >> > > -- > 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. >-- 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.
2010/9/23 Mauro <mrsanna1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> Do you advise me to use cucumber for test? >Cucumber is designed for Behaviour Driven Development (BDD). Some also propagate that BDD is the future of software engineering. If you are goal is BDD, then Cucumber is the answer. I use Cucumber myself. But you should know that there are levels of testing. Cucumber is for high level testing. You also need to look at other testing tools for low level. Rspec, Unit Testing and Shoulda are good examples. --- Edmond Software Developer | Baobab Health Trust (http://www.baobabhealth.org/) | Malawi Cell: +265 999 465 137 | +265 881 234 717 *"Many people doubt open source software and probably don’t realize that there is an alternative… which is just as good.." -- Kevin Scannell* -- 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.
Msan Msan wrote:> Do you advise me to use cucumber for test?Absolutely, for user-facing behavior (equivalent to functional and integration tests). For unit and similar tests, just use RSpec. Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- 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.