how to skip to next describe() upon error in previous describe? jasmine test

Viewed 2347

i'm using such code in order to stop the entire describe upon an error in one of the it() functions:

if(this.results_.failedCount > 0) {
        //next step will finish the test
   jasmine.Queue.prototype.next_ = function () {
   // to instead skip to the end
        this.onComplete();
   }
}

i got it from: How can I make jasmine.js stop after a test failure?

however, if i have few describe blocks in the file, and the first describe fails, i would like it to continue to the next describe and not kill the entire test. how can i do it?

thanks

2 Answers
Related