Skip to content

Instantly share code, notes, and snippets.

@bunnymatic
Created January 30, 2012 23:15
Show Gist options
  • Save bunnymatic/1707425 to your computer and use it in GitHub Desktop.
Save bunnymatic/1707425 to your computer and use it in GitHub Desktop.
add specdoc like logging to jasmine node
jasmine.Spec.prototype.execute = function(onComplete) {
var spec = this;
var descs = [];
var suite = this.suite;
while (suite) {
descs.push(suite.description);
suite = suite.parentSuite;
}
descs = descs.reverse();
descs.push(this.description)
console.log("SPEC: " + descs.join(' '));
if (!spec.env.specFilter(spec)) {
spec.results_.skipped = true;
spec.finish(onComplete);
return;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment