I too have had a recent epiphany "must get serious about testing". So I bought this book too.</p.
And I was left with "... but how do I get "there" from "here"??. Because it does tend to start with
... which is not very handy if you are not in a modularized position to begin with.
I got a great tip from gabszab which suited my current situation (big monolithic CGI script), which was 'invoke the whole thing from your test and use cmp_ok ', but that's another subject (although it might help in our situation?).