Generate the report only after the tests have run

Fix for #31 
(I suppose this isn't quite correct -- it will more or less work, but you'll generate the report twice and throw away one, which seems wasteful)