Monthly Archives: July 2011

Test your JavaScript!

Tddium now supports tests for JavaScript-rich web applications with a number of tools: Capybara using both the default :selenium and :webkit Javascript drivers JS unit and functional testing using jasmine-headless-webkit Cucumber or RSpec tests running in our environment automatically have access to a private Selenium Webdriver and/or Webkit servers with Firefox and Chrome browsers.  Tddium will […]

Leave a comment

Broken Migrations and Missing schema.rb

ActiveRecord Migrations are slick.  They allow easy access to a powerful database with minimal knowledge of SQL, and they promise an easy way to reconstruct a DB schema.  Unfortunately, they’re fragile in the face of large teams and code that has changed significantly. Migrations and schema.rb There are two ways migrations can reconstruct a schema into a […]

Leave a comment

Testing Rails data migrations using RSpec

I’d like to share an example (Gist) of testing a staged ActiveRecord data migration using RSpec and Factory Girl. The example here splits Author information out of an existing Post model. The trouble with a data migration that  moves information is that its models are defined for the “new” schema, but has to operate on […]

Leave a comment

Fast Browser-testing with WebKit and Selenium

We’re happy to announce that we’ve rolled out support for testing Rails and Rack applications using capybara-webkit! We’ve been using this fine tool from Thoughtbot to test some of our own Rails applications, and we highly recommend it. The traditional problem with browser-based testing frameworks (like Selenium, watir, webkit, envjs, etc.) is that they’re slow.  Tests often […]

Leave a comment