I like Jasmine too. On Wed, Aug 31, 2011 at 1:45 PM, Wael Nasreddine <[email protected]>wrote:
> On Aug 31, 2011, at 20:14, Nicolás Sanguinetti > <[email protected]> wrote: > > > On Wed, Aug 31, 2011 at 3:10 PM, Wael Nasreddine > > <[email protected]> wrote: > >> +1 too, jasmine for unit testing and capybara for integration tests > > > > Wellllll… make Jasmine optional and I'm a happy camper :) > > From our experience with all rails features, rspec, test-unit, haml, > erb etc.. I don't think anything would be mandatory, but instead > through generators and we choose whatever we want... Anyway Jasmine is > my preference for unit testing and what i said is mere suggestion :) > > Wael > > > > >> Regards, > >> Wael > >> > >> -- > >> Wael Nasreddine > >> Sent from my iPhone > >> On Aug 31, 2011, at 19:46, Everton Moreth <[email protected]> > wrote: > >> > >> A standard javascript testing library would be awesome. > >> > >> Today we struggle with lots of different aproaches to test javascript, > using > >> only selenium, capybara/selenium, cucumber/capybara/selenium, jasmine, > >> etc... And other non Rails techniques. It would be great if we could > rely > >> and focus on a single framework to develop to and help. > >> > >> +1 > >> > >> Everton Moreth > >> > >> On Wed, Aug 31, 2011 at 10:06 AM, Rodrigo Rosenfeld Rosas > >> <[email protected]> wrote: > >>> > >>> Hi guys, > >>> > >>> While reading the 3.1 release notes in Rails Guides, I've stumbled > across > >>> this phrase: > >>> > >>> "The major change in Rails 3.1 is the Assets Pipeline. It makes CSS and > >>> JavaScript first-class code citizens and enables proper organization, > >>> including use in plugins and engines." > >>> > >>> Then, I started thinking that it might not be really true. I guess, > that > >>> it is time for Rails to adopt a default testing framework for > Javascript > >>> (both unit and integration). > >>> > >>> There should also exist a Javascript generator that would generate the > >>> empty test file too. It would also be interesting if we could generate > views > >>> with "--include-javascript", which would include a new file, like, for > >>> instance, with jQuery: > >>> > >>> jQuery(function($){ > >>> // place your code here. > >>> }) > >>> > >>> Is there already something like this in Rails? I don't remember reading > >>> anything about Javascript TDD natively with Rails. > >>> > >>> It seems like Capybara has became the defacto solution for this kind of > >>> test. Maybe it could be the default Javascript test framework (using > webkit > >>> by default, maybe). > >>> > >>> Any thoughts? > >>> > >>> Cheers, > >>> > >>> Rodrigo. > >>> > >>> -- > >>> 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 [email protected] > . > >>> To unsubscribe from this group, send email to > >>> [email protected]. > >>> 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 [email protected]. > >> To unsubscribe from this group, send email to > >> [email protected]. > >> 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 [email protected]. > >> To unsubscribe from this group, send email to > >> [email protected]. > >> 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 [email protected]. > > To unsubscribe from this group, send email to > [email protected]. > > 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]. > 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
