Generate the report only after the tests have run

Fix for #31