Skip to content

Question/Feature Request: Ability to run a BeforeEach for ALL specs in a project #1629

@pablocalvo-zh

Description

@pablocalvo-zh

We have multiple Describe suites, that live in separate files in the same project. For each one of them we have added a BeforeEach that helps us skip tests if they have previously run and were successful (a way to speed up our testing pipelines).

// this is mandatory when checking skipped test
// the spec hash is helpful to debug and manually skip tests
BeforeEach(func(specContext SpecContext) {
	e2eSuite.SetupSpec(specContext, specContext.SpecReport(), true)
})

We have the collaboration problem that some engineers write new files and forget to include this block, and we have multiple projects like these. So I am wondering if there is a way to run one BEFORE EACH for all Its within the same project, so we can write it only once..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions