Sha256: 91564d7003001a763daf5071f009d52973fb4a4b4c39a8ead48381444acf7917

Contents?: true

Size: 658 Bytes

Versions: 3

Compression:

Stored size: 658 Bytes

Contents

class Teaspoon.Reporters.HTML extends Teaspoon.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 #{_mocha_version || "[unknown version]"}"


class Teaspoon.Reporters.HTML.SpecView extends Teaspoon.Reporters.HTML.SpecView

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
teaspoon-0.9.1 app/assets/javascripts/teaspoon/mocha/reporters/html.coffee
teaspoon-0.9.0 app/assets/javascripts/teaspoon/mocha/reporters/html.coffee
teaspoon-0.8.0 app/assets/javascripts/teaspoon/mocha/reporters/html.coffee