Skip to content

🗣️ Discussion: this.skip() - bug summary #3740

@juergba

Description

@juergba

Description

1. this.skip() in beforeEach hooks

Incorrect hook pattern.
All beforeEach hooks are executed, but afterEach hooks are skipped completely, see #2546
=> fixed: #3741

2. async this.skip() in beforeEach hooks

results in a "Uncaught async skip; aborting execution", see test
before hooks seem to work async though, and as per user documentation it should work.
=> fixed: #3745

3. this.skip() in it tests

does not work correctly, since beforeEach hooks are executed, but afterEach hooks do not run.
=> fixed: #3859

4. this.skip() in afterEach hooks

Incorrect, since already passed/failed tests are set to pending retrospectively. No tests are skipped at all.
=> definition of use case still pending

5. this.skip() in after hooks

Incorrect, since already passed/failed tests are set to pending retrospectively. No tests are skipped at all.
=> soft deprecation: #3719
=> disallow usage: #4136

6. this.skip() with --allow-uncaught

Incorrect, since silently aborts execution after first this.skip().
=>fixed: #4030

Versions

current master

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: discussiondebates, philosophy, navel-gazing, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions