programming

Testing $HOME with Cucumber and Aruba

Cucumber and Aruba are awesome tools to write acceptance tests for your command line application. The allow you to do things like this: Scenario: Exit with 0 when no examples are run Given a file named "a_no_examples_spec.rb" with: """ruby """ When I run `rspec a_no_examples_spec.rb` Then the exit status should be 0 And the output should contain "0 examples" This example was taken from rspec-core. Aruba basically does three things for you:

Dealing With Technical Debt

The rails project I’m talking about is over three years old and has seen commits from 27 developers in that period. These developers were both co-workers, freelancers, off-shore developers and designers of different levels of expertise. Technical Debt Inventory Needless to say, as most projects of this size and age, this one has plenty of technical debt. Let’s make an inventory. The test suite takes approximately eighty minutes to run.