Sunday, January 4, 2009

Getting started with Ruby on Rails

After Drupal, I have now moved on to Ruby on Rails. I have started working on BDD using Cucumber.

Initially I stumbled upon some issues with installing the gems from behind a firewall -
Solution : http://github.com/aslakhellesoy/cucumber/wikis/ruby-on-rails
For Windows, set the HTTP_PROXY environment variable

Now I have cucumber running on my machine.

We have decided to run two kinds of features -
1. acceptance - These will be the user acceptance tests using Selenium that invoke a browser and simulate user activity on the site. They are run after a successful build
2. functional - These are the tests that use the app ruby code (as my application is built in Ruby on Rails) and webrat which speeds up the test execution. Webrat runs internally at the server without passing actual HTML between a browser and server.
This runs as a part of the build process whihc includes unit and integration tests. Successful test suite execution results in a deployment of the latest version of code.

More to come...

0 comments: