Created
January 30, 2012 23:15
-
-
Save bunnymatic/1707425 to your computer and use it in GitHub Desktop.
add specdoc like logging to jasmine node
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
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