Chapter 5, recipe 11: setup environment for a text based test runner