Archive for the ‘testing’ Category

And the greatest of these is laziness

Wednesday, March 19th, 2008

The three virtues of excellent programmers are well-known - laziness, impatience, and hubris. Last night, I had an epiphany related to the first of these... and thus was born the laziness plugin. You know how, when you find a bug in your app, you're supposed to write a failing test before ...

A quick testing tip

Wednesday, March 5th, 2008

Generally, when you run your tests in a Rails app you get something like this: Started .................E...................   1) Error: test_editors_for_returns_none_for_selection_if_no_editors(PagesHelperTest): ActiveRecord::StatementInvalid: Mysql::Error: Unknown column 'images.user_id' in 'where clause': SELECT * FROM `images` WHERE (`images`.user_id = 1) LIMIT 1 test/unit/pages_helper_test.rb:20 all_tests.rb:1 You may have noticed that ...

Testing metrics and confidence

Wednesday, February 6th, 2008

In a recent Ask 37signals post over at Signal vs. Noise, DHH said the following: We try to do a fairly good job at keeping our test suites current and exhaustive as well. Basecamp has a 1:1.2 ratio of test code (thanks to the persistence of Jamis!), Highrise has a ratio ...