Visitar URL original
Add a way to run a beforeEach before all other beforeEachs in the test. · Issue #1294 · Quick/Quick · GitHub
Skip to content

Add a way to run a beforeEach before all other beforeEachs in the test. #1294

Description

@younata

It would be nice to have a way to a beforeEach that runs before the beforeEachs defined earlier than the other beforeEachs in a test. Something like this:

beforeEach {
    // this runs second
}

describe("a nested example group") {
    beforeAll {
        // This runs before that outer beforeEach
    }
}

Basically, I want the opposite of justBeforeEach.

I'm not too sold on beforeAll, because it could be confused with beforeSuite. But it does get the idea across.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions