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

18 lines
538 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"}"
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())
})