Archive for October, 2007

TDD is good for your happiness and well-being

“Flow”, by Mihaly Csikszentmihalyi, is one of the pioneering books in the field of Positive Psychology, i.e. researching about what makes people happy and productive, instead of focusing of psychological diseases.
One of the key concepts in the book is that for an experience to be enjoyable, it has to be challenging at the right level, […]

Learning Textmate shortcuts

As Nick Carroll said here, pairing with different IDEs means more shortcuts to remember. For our project we’ll be using jEdit and Textmate, so that motivated me to look up the equivalent for Textmate
: Ctrl-Cmd-T lists the actions in a Quicksilver manner.
During onboarding with new developers, it takes quite some efforts to learn the […]

TextMate bundle to Run Focused Test on a module (part 2)

So here’s the actual bundle, using Alt-Cmd-M as shortcut.
Shane wrote another bundle to run all tests (instead of running just focused test) that include a module, Cmd-M, and I’ve included it here too.

run_all_unit_tests_in_module-tmCommand.gz
Run Focused Unit Test for module.tmCommand.gz

TextMate bundle to Run Focused Test on a module

On our Ruby on Rails project we use TextMate. Run Focused Test is one of our favourite features. However we have some tests that are modules. e.g. we have
class CatTest < Test::Unit::TestCase
include AnimalTests
… and then some Cat-specific tests
end

class DogTest < Test::Unit::TestCase
include AnimalTests
… and then some Dog-specific tests
end
One annoying thing is that after we […]