Created
November 22, 2012 13:21
-
-
Save neekey/4131144 to your computer and use it in GitHub Desktop.
获知Jasmine的test执行完毕
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var jasmineEnv = jasmine.getEnv(); | |
var oldCallback = jasmineEnv.currentRunner().finishCallback; | |
jasmineEnv.currentRunner().finishCallback = function () { | |
oldCallback.apply(this, arguments); | |
console.log(jasmine.getJSReport()); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
这里其实是重写了jasmine的方法...= =恩恩