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

25 lines
661 B
CoffeeScript
Raw Permalink Normal View History

2012-01-11 19:24:09 +00:00
#= require jasmine.HeadlessReporter
#
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