Write test results to file and to stdout.