I think a custom formatter is generally the way to go: How do can I write code to be run *after* tests are executed?