jasmine-headless-webkit/vendor/assets/coffeescripts/jasmine.HeadlessReporter.File.coffee

25 lines
664 B
CoffeeScript
Raw Permalink Normal View History

#= require jasmine.HeadlessReporter.js
#
class jasmine.HeadlessReporter.File extends jasmine.HeadlessReporter
2011-12-12 17:22:32 +00:00
reportRunnerResults: (runner) ->
super(runner)
output = "TOTAL||#{@length}||#{@failedCount}||#{this._runtime()}||#{if JHW._hasErrors then "T" else "F"}"
2011-12-29 23:37:23 +00:00
this.puts(output)
this.puts("SEED||#{JHW.getSeed()}")
consoleLogUsed: (msg) ->
this.puts("CONSOLE||#{msg}")
2011-12-12 17:22:32 +00:00
reportSpecResults: (spec) ->
super(spec)
this._reportSpecResult(spec, {
success: (results) =>
2011-12-29 23:37:23 +00:00
this.puts("PASS||" + spec.getJHWSpecInformation())
2011-12-12 17:22:32 +00:00
failure: (results) =>
2011-12-29 23:37:23 +00:00
this.puts("FAIL||" + spec.getJHWSpecInformation())
2011-12-12 17:22:32 +00:00
})
2011-12-29 23:37:23 +00:00