jest icon indicating copy to clipboard operation
jest copied to clipboard

Ability to skip rest test cases if one fails

Open vilicvane opened this issue 5 years ago • 19 comments

🚀 Feature Proposal

Provide ability to skip rest test cases in a file or describe block if one test fails.

Motivation

For E2E testing, the test cases are usually written to be run sequentially, and a failed test should stop the rest from running.

Example

test('should login', async () => {});

test('should edit profile', async () => {});

test('should render profile', async () => {});

Or with describes:

describe('#1', () => {
  test('should login', async () => {});

  describe('#1.1', () => {
    test('should edit profile', async () => {});

    test('should render profile', async () => {});
  });
});

vilicvane avatar Apr 27 '19 15:04 vilicvane