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")
|
|
|
|
|
2012-01-03 17:28:17 +00:00
|
|
|
reportSpecResults: (spec) =>
|
|
|
|
JHW.ping()
|
|
|
|
super(spec)
|
|
|
|
|
|
|
|
reportRunnerResults: (runner) =>
|
|
|
|
super(runner)
|
|
|
|
|
|
|
|
JHW.finishSuite()
|
|
|
|
|
|
|
|
if window.JHW
|
|
|
|
window.onbeforeunload = null
|
|
|
|
|