Sha256: eebae82f61c694a4589d282557ca04de021c36dfb4966eebf5a91506fb89a63b

Contents?: true

Size: 608 Bytes

Versions: 9

Compression:

Stored size: 608 Bytes

Contents

class Teaspoon.Reporters.Console extends Teaspoon.Reporters.Console

  constructor: (env) ->
    super
    env.log(@reportSpecResults)
    env.testDone(@reportSpecResults)
    env.done(@reportRunnerResults)
    @reportRunnerStarting()


  reportRunnerStarting: ->
    @currentAssertions = []
    @log
      type:  "runner"
      total: null
      start: JSON.parse(JSON.stringify(@start))


  reportSpecResults: (result) =>
    unless typeof(result.total) == "number"
      @currentAssertions.push(result)
      return
    result.assertions = @currentAssertions
    @currentAssertions = []
    super(result)

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
teaspoon-0.9.1 app/assets/javascripts/teaspoon/qunit/reporters/console.coffee
teaspoon-0.9.0 app/assets/javascripts/teaspoon/qunit/reporters/console.coffee
teaspoon-0.8.0 app/assets/javascripts/teaspoon/qunit/reporters/console.coffee
teaspoon-0.7.9 app/assets/javascripts/teaspoon/qunit/reporters/console.coffee
teaspoon-0.7.8 app/assets/javascripts/teaspoon/qunit/reporters/console.coffee
teaspoon-0.7.7 app/assets/javascripts/teaspoon/qunit/reporters/console.coffee
teaspoon-0.7.6 app/assets/javascripts/teaspoon/qunit/reporters/console.coffee
teaspoon-0.7.5 app/assets/javascripts/teaspoon/qunit/reporters/console.coffee
teaspoon-0.7.4 app/assets/javascripts/teaspoon/qunit/reporters/console.coffee