jasmine-headless-webkit/vendor/assets/coffeescripts/jasmine.HeadlessFileReporter.coffee
2011-12-12 12:22:32 -05:00

18 lines
538 B
CoffeeScript

class jasmine.HeadlessFileReporter extends jasmine.HeadlessReporter
reportRunnerResults: (runner) ->
super(runner)
output = "TOTAL||#{@length}||#{@failedCount}||#{this._runtime()}||#{if JHW._hasErrors then "T" else "F"}"
JHW.report.puts(output)
reportSpecResults: (spec) ->
super(spec)
this._reportSpecResult(spec, {
success: (results) =>
JHW.report.puts("PASS||" + spec.getJHWSpecInformation())
failure: (results) =>
JHW.report.puts("FAIL||" + spec.getJHWSpecInformation())
})