Dump files and generate HTML report when happen process exit

функция `pushTest` нуждается в рефакторинге. Предлагаю такой вариант:
```js
function pushTest(test) {
    var title = test.parent.fullTitle(),
        suite = suites[title] || {tests: [], name: title},
        failed = !!test.err;

    if(failed) {
        test.htmlDiff = htmlDiffer.diffHtml(test.err.actual, test.err.expected);
    }

    suite.tests.push(test);
    suite.failed = suite.failed || failed;

    suites[title] = suite;
}
```