In Protractor, how can I skip failed test cases and continue remaining test cases -
for example, in set of 10 test cases, 1 test in particular expects condition failing.
in case how can stop executing test case further, or should continue execute remaining test cases?
jasmine supports pending()
function.
if call pending function in specs, spec marked pending.in case 1 of expectation failing put pending function before that!
describe('test', function() { it('skip spec', function() { if (someskipcheck()) { pending(); } expect(1).tobe(2); // expect failing });
for more details can refer jasmine pending function - http://jasmine.github.io/2.0/introduction.html#section-pending_specs
Comments
Post a Comment