docs: function(run) {
              var t = this;
  
              var output = '<?xml version="1.0" encoding="UTF-8" ?>\n';
              output += '<testsuites>\n';
  
              run.getSuites().forEach(
                  function(suite) {
                      output += t.getTestSuite(suite);
                  }
              );
  
              output += '</testsuites>';
  
              var outfile = path.resolve(t.options.junitOutput);
              return fs.writeFile(outfile, output).then(
                  function() {
                      console.log('\nwrote JUnit output to %s', outfile);
                  },
                  function(err) {
                      throw new Error('failed to write to file "'+outfile+'"');
                  }
              );
          }