spec/lib/jspec.js
function(results, options) {
        var uri = options.uri || 'http://' + window.location.host + '/results'
        JSpec.post(uri, {
          stats: JSpec.stats,
          options: options,
          results: map(results.allSuites, function(suite) {
            if (suite.hasSpecs())
              return {
                description: suite.description,
                specs: map(suite.specs, function(spec) {
                  return {
                    description: spec.description,
                    message: !spec.passed() ? spec.failure().message : null,
                    status: spec.requiresImplementation() ? 'pending' :
                              spec.passed() ? 'pass' :
                                'fail',
                    assertions: map(spec.assertions, function(assertion){
                      return {
                        passed: assertion.passed  
                      }
                    })
                  }
                })
              }
          })
        })
  			if ('close' in main) main.close()
      }
function(results, options) {
        var uri = options.uri || 'http://' + window.location.host + '/results'
        JSpec.post(uri, {
          stats: JSpec.stats,
          options: options,
          results: map(results.allSuites, function(suite) {
            if (suite.hasSpecs())
              return {
                description: suite.description,
                specs: map(suite.specs, function(spec) {
                  return {
                    description: spec.description,
                    message: !spec.passed() ? spec.failure().message : null,
                    status: spec.requiresImplementation() ? 'pending' :
                              spec.passed() ? 'pass' :
                                'fail',
                    assertions: map(spec.assertions, function(assertion){
                      return {
                        passed: assertion.passed  
                      }
                    })
                  }
                })
              }
          })
        })
  			if ('close' in main) main.close()
      }
function ( results , options ) { var uri = options . uri || 'http://' + window . location . host + '/results' JSpec . post ( uri , { stats : JSpec . stats , options : options , results : map ( results . allSuites , function ( suite ) { if ( suite . hasSpecs ( ) ) return { description : suite . description , specs : map ( suite . specs , function ( spec ) { return { description : spec . description , message : ! spec . passed ( ) ? spec . failure ( ) . message : null , status : spec . requiresImplementation ( ) ? 'pending' : spec . passed ( ) ? 'pass' : 'fail' , assertions : map ( spec . assertions , function ( assertion ) { return { passed : assertion . passed } } ) } } ) } } ) } ) if ( 'close' in main ) main . close ( ) }
Report to server.

Options:
- uri           specific uri to report to.
- verbose       weither or not to output messages
- failuresOnly  output failure messages only

@api public
Report to server .