Thanks for this -- I''ve been wanting such a thing since I read the
Selenium and Rails integration article a while back. Being lazy paid
off -- I didn''t have to write it myself. :)
On Feb 5, 2006, at 4:53 PM, Jonas Bengtsson wrote:
> One of the things I like about Rails is the built-in support for
> testing
> ? it?s almost hard not to write tests. But even if I write extensive
> tests (currently ?Code to Test Ratio: 1:3.4? according to rake
> stats in
> a small toy project) I still feel that it?s not enough. I occasionally
> get the urge to fire up the browser and click around to test that
> everything works. You shouldn?t have to ?click around? to test that
> you
> haven?t broken anything that often (although it?s probably good to use
> the browser for checking usability).
>
> That?s where Selenium comes in. It?s a javascript based functional
> test
> tool that uses Fit like test scripts to test web application
> directly in
> the browser. There are other ways to test in browsers, like Watir, but
> they don?t run in any browser/platform so I think that javascript
> based
> solutions are the way to go. And for javascript based solutions I
> don?t
> know if there are any competition at all.
>
> However, I didn?t think that vanilla Selenium worked as smooth as it
> should in a Rails context. So I?ve been writing a plug-in that
> makes the
> experience much better, IMHO. It took a bit longer than what I
> thought,
> but I?ve been busy and stuff like this takes time to get into a good
> enough state to release to the world.
>
> Please try it out and let me know if you have any problems using it or
> if you have suggestions for improvements!
>
> /Jonas Bengtsson, jonas.b@home.se, http://andthennothing.net
>
>
> More info:
> http://andthennothing.net/archives/2006/02/05/selenium-on-rails
> svn: http://andthennothing.net/svn/public/selenium_on_rails/
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails