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

21 lines
436 B
CoffeeScript

#= require jasmine-reporters/src/jasmine.junit_reporter.js
#
class jasmine.HeadlessReporter.JUnit extends jasmine.JUnitXmlReporter
constructor: (@outputTarget = null) ->
writeFile: (filename, text) =>
JHW.print(@outputTarget, text)
reportSpecResults: (spec) =>
JHW.ping()
super(spec)
reportRunnerResults: (runner) =>
super(runner)
JHW.finishSuite()
if window.JHW
window.onbeforeunload = null