jasmine-headless-webkit/vendor/assets/coffeescripts/jasmine.HeadlessFileReporter.coffee

23 lines
622 B
CoffeeScript
Raw Normal View History

2011-12-12 17:22:32 +00:00
class jasmine.HeadlessFileReporter extends jasmine.HeadlessReporter
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