https://github.com/larrymyers/jasmine-reporters
--
Ben Loveridge
> --
> You received this message because you are subscribed to the Google Groups "Jasmine" group.
> To post to this group, send email to jasmi...@googlegroups.com.
> To unsubscribe from this group, send email to jasmine-js+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/jasmine-js?hl=en.
>
Hello, I know this is late but I thought I'd add this for anyone interested:The jasmine.Env() object has the method "currentRunner()". this returns the runner the env is going to use to execute the tests.The jasmine.Runner() object has the method finishCallback(). Overriding this method completely breaks functionality, but I added a function which intercepts this call so that I could hook into the callback. Like this:var oldCallback = jasmineEnv.currentRunner().finishCallback;
jasmineEnv.currentRunner().finishCallback = function () {oldCallback.apply(this, arguments);$("body").append( "<div id='_test_complete_signal_'></div" );};
jasmineEnv.execute();You shouldn't override the finishCallback completely because that breaks the HTMLReporter; who knows what else. Hence the first call "oldCallback.apply(this, arguments);"I suggest using this over reporters, because they don't have an 'all done' callback for when *everything* finishes.