code: function(results, options) {
           failuresOnly = option('failuresOnly')
           print(color("\n Passes: ", 'bold') + color(results.stats.passes, 'green') + 
                 color(" Failures: ", 'bold') + color(results.stats.failures, 'red') +
                 color(" Duration: ", 'bold') + color(results.duration, 'green') + " ms \n")
                
           function indent(string) {
             return string.replace(/^(.)/gm, '  $1')
           }
           
           each(results.allSuites, function(suite) {
             var displaySuite = failuresOnly ? suite.ran && !suite.passed() : suite.ran
              if (displaySuite && suite.hasSpecs()) {
                print(color(' ' + suite.description, 'bold'))
                each(suite.specs, function(spec){
                  var assertionsGraph = inject(spec.assertions, '', function(graph, assertion){
                    return graph + color('.', assertion.passed ? 'green' : 'red')
                  })
                  if (spec.requiresImplementation())
                    print(color('  ' + spec.description, 'blue') + assertionsGraph)
                  else if (spec.passed() && !failuresOnly)
                    print(color('  ' + spec.description, 'green') + assertionsGraph)
                  else if (!spec.passed())
                    print(color('  ' + spec.description, 'red') + assertionsGraph + 
                          "\n" + indent(map(spec.failures(), function(a){ return a.message }).join("\n")) + "\n")
                })
                print("")
              }
           })
           
           quit(results.stats.failures)
         }
docs: Terminal reporter.
  
  @api public