You can use the reporter
describe("outer", function() {
var specDescription, specFullName;
(function() {
jasmine.getEnv().addReporter({
suiteStarted: function(result) {
specDescription = result.description;
specFullName = result.fullName;
}
});
})();
beforeEach(function() {
console.debug(specDescription);
console.debug(specFullName);
});
describe("test1", function() {
it("bla bla", function() {});
});
describe("test2", function() {
it("bla bla", function() {});
});
}
source
share