Sha256: 3e08c708f647ddeff1c0251e05f183a062156733202b344c9c35688fc42b9ce4

Contents?: true

Size: 615 Bytes

Versions: 3

Compression:

Stored size: 615 Bytes

Contents

class Teabag.Reporters.HTML extends Teabag.Reporters.HTML

  constructor: (runner) ->
    super
    @reportRunnerStarting(runner)
    runner.on("fail", @reportSpecResults)
    runner.on("test end", @reportSpecResults)
    runner.on("end", @reportRunnerResults)


  reportSpecResults: (spec, err) =>
    if err
      spec.err = err
      @reportSpecResults(spec) if spec.type == "hook"
      return
    @reportSpecStarting(spec)
    super


  envInfo: ->
    "mocha 1.8.1"


class Teabag.Reporters.HTML.SpecView extends Teabag.Reporters.HTML.SpecView

  updateState: (state) ->
    super(state, @spec.spec.duration)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
teabag-0.7.1 app/assets/javascripts/teabag/mocha/reporters/html.coffee
teabag-0.7.0 app/assets/javascripts/teabag/mocha/reporters/html.coffee
teabag-0.6.0 app/assets/javascripts/teabag/mocha/reporters/html.coffee