Skip to content

Instantly share code, notes, and snippets.

@neekey
Created November 22, 2012 13:21
Show Gist options
  • Save neekey/4131144 to your computer and use it in GitHub Desktop.
Save neekey/4131144 to your computer and use it in GitHub Desktop.
获知Jasmine的test执行完毕
var jasmineEnv = jasmine.getEnv();
var oldCallback = jasmineEnv.currentRunner().finishCallback;
jasmineEnv.currentRunner().finishCallback = function () {
oldCallback.apply(this, arguments);
console.log(jasmine.getJSReport());
};
@neekey
Copy link
Author

neekey commented Nov 22, 2012

这里其实是重写了jasmine的方法...= =恩恩

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment