Main Content

Dead simple JavaScript Unit Tests in Rails with Blue Ridge and Screw.Unit

A talk by Dr Nic at Rails Underground

About the Talk

July 25, 2009 5:00 PM

London, UK

London, UK

Dead simple JavaScript Unit Tests in Rails with Blue Ridge and Screw.Unit Rails was the first place many of us learnt about unit testing, and then learnt TDD/BDD. Yet everyday Rails developers use JavaScript without writing any unit tests. This is sad.

In the past, perhaps you didn't know how to get started? Didn't know what files were needed? How to write tests? How to emulate user actions?

Not any more. The Rails plugin blue-ridge bundles one of the best JS testing frameworks Screw.Unit, with simple conventions, getting-started generators, and even a headless "rake test:javascripts" task for your continuous integration process.

After this session, you'll never write another line of JavaScript without first writing a test. Or the pagan gods of client-side scripting will slap you.

Ratings and Recommendations

Avg. Rating

Average based
on 7 ratings

comments powered by Disqus