Add test ouput to file when test fails
Merge pull request #466 from huitseeker/issue/test-output-to-file

Add test ouput to file when test fails