docs: function(ts) {
              var t = this;
              var output = '';
  
              if (ts.getResult() != TestSuite.UNTESTED) {
  
                  var summary = ts.getSummary();
  
                  output += '    <testsuite name="' + encode(ts.getName()) + '"'
                      + ' errors="' + summary.tests.errored + '"'
                      + ' failures="' + summary.tests.failed + '"'
                      + ' skipped="' + summary.tests.skipped + '"'
                      + ' tests="' + summary.tests.total + '"'
                      + ' time="' + (ts.getDuration() / 1000) + '">\n';
  
                  ts.getTests().forEach(
                      function(tc) {
                          output += t.getTestCase(tc);
                      }
                  );
  
                  output += '    </testsuite>\n';
              }
  
              return output;
          }