Jasmine/Protractor: stop test on failure in beforeEach

前端 未结 4 596
轻奢々
轻奢々 2021-02-15 08:14

I am currently writing tests protractor and I was wondering if there is some possibility to cancel test execution as soon as something in the beforeEach fails (and return some u

4条回答
  •  滥情空心
    2021-02-15 09:10

    jasmine-bail-fast does exactly what you did overriding the specFilter function, but does it on afterEach. So it will only fail after the first "it" is run. It won't help solving this specific case.

提交回复
热议问题