jasmine-headless-webkit-rep.../vendor/assets/javascripts/jasmine.HeadlessReporter.Te...

21 lines
433 B
CoffeeScript
Raw Normal View History

2011-12-30 20:39:01 +00:00
#= require jasmine-reporters/src/jasmine.teamcity_reporter.js
#
class jasmine.HeadlessReporter.Teamcity extends jasmine.TeamcityReporter
constructor: (@outputTarget = null) ->
log: (text) =>
JHW.print(@outputTarget, text + "\n")
reportSpecResults: (spec) =>
JHW.ping()
super(spec)
reportRunnerResults: (runner) =>
super(runner)
JHW.finishSuite()
if window.JHW
window.onbeforeunload = null