code: function reportStatus(status, outputFile) {
    let log = [''];
    log.push('Suites passed:');
    status.passed.forEach(function (val) {
      log.push('  ' + val);
    });
  
    if (status.failed.length == 0) {
      log.push('All tests passed');
    } else {
      log.push('Suites failed:');
      status.failed.forEach(function (val) {
        log.push('  ' + val);
      });
    }
    log.push('\nElapsed time: ' + status.elapsedTime + ' seconds');
    log = log.join('\n');
    console.log(log);
    fs.appendFileSync(outputFile, log);
  }
docs: Report final status.