In Jasmine 1.3, we had this option to the get current spec and suite names:
describe(\"name for describe\", function () { it(\"name for it\", function ()
I add a new jasmine reporter, then get the spec name without define N variable on each spec. Hope can help, thanks.
var reporterCurrentSpec = { specStarted: function(result) { this.name = result.fullName; } }; jasmine.getEnv().addReporter(reporterCurrentSpec);