Skip to content

Ability to abort on first failure #13

Open
@rodneyrehm

Description

@rodneyrehm

When chaining actions/assertions in a test, I have one of two approaches:

  1. I want to see what works - errors are logged, but the test continues
  2. I want to abort on the first failure, as this might've been the precondition for something else - something that I want to prevent from happening if the page is not in proper state

As this is a TestCase wide decision, we should have TestInstance.abortOnFailure(true) to engage this mode. The Suite might allow to configure this for all its tests. For this we could do with

{
  options: {
    abortOnFailure: true
  },

  // tests...
};

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions